I'll quote this entire message so that no-one gets "off track".<g>
On Fri, 12 May 2000 22:15:40 -0500, Clarence Verge wrote:
> Glenn McCorkle wrote:
>> BTW, Those .DGIs might help users to understand how a .DGI works.
>> As you can see, .DGIs are not much more than batch files.
>> The only difference being that each command is not on it's own line.
>> They are seperated by "\n" and placed all on one line.
>> (and we must use "\\" not "\" for path indicators)<g>
> Glenn, those are very useful examples but as examples they fail to address
> the area of .DGIs that I personally find confusing.
> I find it easy to understand WHAT happens on the RIGHT side of the "|".
> It's mime.cfg and the left side that leaves me uninformed. <G>
> For example:
>> application/x-arachne-package APM>HTM|@md \\backup \n md \\backup\\arachne \n
>> pkzip -ex \\backup\\arachne\\ara-back.zip \\arachne\\*.cfg \n
>> $eapm.exe -u $u $1>$2
>> file/.apm >HTM|@md \\backup \n md \\backup\\arachne \n
>> pkzip -ex \\backup\\arachne\\ara-back.zip \\arachne\\*.cfg \n
>> $eapm.exe -u $u $1>$2
>> (remember, these lines have been broken for eMail)
> Why are BOTH of these required ?
> - - They seem to be identical on the right side.
The first one (application/x-arachne-package) gets used when we D/L the file
from the web. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|||||||||||||||||||||||||||||
This is the "content/type" identifier sent by the server computer we
are contacting.
The second one (file/.apm) is used when we link to a file which is
already on our own HDD. (or diskette)
If we comment-out the first one (place a ; at the start of the line),
every .APM file D/led will cause the save-as page to appear instead of
being automatically installed.
After the file has been saved to disk, it may then be installed by
linking to the saved file. (file/.apm now takes-over)
Here are a few more modifications I've made to mime.cfg
[My stuff]
image/pjpeg JPG>BMP|$edjpeg.exe -bmp -colors 256 $1 $2
video/mpeg MPG|@call C:\\1batch\\arampeg.bat $1
video/x-mpeg MPG|@call C:\\1batch\\arampeg.bat $1
video/mpeg MPE|@call C:\\1batch\\arampeg.bat $1
video/x-mpeg MPE|@call C:\\1batch\\arampeg.bat $1
video/x-msvideo AVI|@call C:\\1batch\\araavi.bat $1
video/msvideo AVI|@call C:\\1batch\\araavi.bat $1
video/quicktime MOV|@call C:\\1batch\\araavi.bat $1
;audio/mpeg MP3|@d:\\audio\\DOSAMP\\DOSAMP.EXE $1 -downsample
;audio/x-mpeg MP3|@d:\\audio\\DOSAMP\\DOSAMP.EXE $1 -downsample
;audio/mpeg3 MP3|@d:\\audio\\DOSAMP\\DOSAMP.EXE $1 -downsample
;audio/x-mpeg3 MP3|@d:\\audio\\DOSAMP\\DOSAMP.EXE $1 -downsample
audio/mpeg MP3|@d:\\audio\\mpxplay\\mpxplay.exe -m $1
audio/x-mpeg MP3|@d:\\audio\\mpxplay\\mpxplay.exe -m $1
audio/mpeg3 MP3|@d:\\audio\\mpxplay\\mpxplay.exe -m $1
audio/x-mpeg3 MP3|@d:\\audio\\mpxplay\\mpxplay.exe -m $1
audio/midi MID|d:\\audio\\cndmidi\\cndmidi.exe $1
audio/x-midi MID|d:\\audio\\cndmidi\\cndmidi.exe $1
audio/s3m S3M|@d:\\audio\\mod\\cp.EXE $1
audio/x-s3m S3M|@d:\\audio\\mod\\cp.EXE $1
audio/mod MOD|@d:\\audio\\mod\\cp.EXE $1
audio/x-mod MOD|@d:\\audio\\mod\\cp.EXE $1
;application/pdf |c:\\xpdfdos\\pdftotex.exe $1 $t\pdf.txt \n arachne $t\pdf.txt
application/pdf >TXT|@c:\\xpdfdos\\pdftotex.exe -q $1 $2
application/zip >TXT|[300]PKUNZIP -v $1>$2
application/x-zipped >TXT|[300]PKUNZIP -v $1>$2
application/x-arachne-package APM|$eacopy.exe $d e:\\arachne\\apm\\ $1
file/printprn.dgi |[100]TYPE _*.txt>PRN\ntype _>prn
file/.mpg |@call C:\\1batch\\arampeg.bat $1
file/.mpe |@call C:\\1batch\\arampeg.bat $1
file/.avi |@call C:\\1batch\\araavi.bat $1
file/.mov |@call C:\\1batch\\araavi.bat $1
;file/.mp3 |@d:\\audio\\DOSAMP\\DOSAMP.EXE $1 -downsample
file/.mp3 |@d:\\audio\\mpxplay\\mpxplay.exe -m $1
file/.mid |d:\\audio\\cndmidi\\cndmidi.exe $1
file/.s3m |@d:\\audio\\mod\\cp.EXE $1
file/.mod |@d:\\audio\\mod\\cp.EXE $1
file/.zip >TXT|[300]PKUNZIP -v $1>$2
file/.arj >TXT|[300]ARJ l $1>$2
file/mxedit.dgi |@call xedit mail.tmp
file/cxedit.dgi |@call xedit textarea.tmp
file/xxedit.dgi |@del textarea.tmp
file/xedit.dgi |@call xedit $l|arachne $l
file/exportbmp.dgi |[100]COPY _4prt.bmp $w$s>NUL \n del _4prt.bmp
file/.pdf TXT|@c:\\xpdfdos\\pdftotex.exe -q $1 $2
file/dgst2cnm.dgi |@call d2c.bat $e_4prt.txt $s
[end of my stuff]
Before I forget....
Remember to comment-out any original lines which were used
for these same functions.
---from further down in my (edited) copy of mime.cfg---
;application/zip ZIP
;application/x-zipped ZIP
;application/x-arachne-package APM>HTM|$eapm.exe -u $u $1>$2
_______________________________________________________
> Why is there an ">HTM" on the left side of the "|"
> - - The result is a .zip and the commands and input are text.
The >HTM means that the "final output" of this .DGI will be an html file.
(apm.exe creates this html to show us the results of the .apm we have
just installed)
> If the example is correct, how did you know the answers to those questions ?
Elementary, dear Clarence... elementary.
I experimented with it (over and over again), until I *found* the answers.
> And finally, what happens if the directory(s) already exist(s) ?
The "standard" DOS error message will be displayed on our screens
("cannot create directory".... or perhaps "directory already exists")
This causes no problem that I'm aware of.<g>
> Maybe it is time once again to consider talking about the secrets of mime.cfg.
> <G>
I hope that this little dissertation has helped to "uncover some secrets".<g>
--
Glenn McCorkle [EMAIL PROTECTED] North Jackson, Ohio, USA
DOS prog. for QV cameras http://www.angelfire.com/id/glenndoom/qvplay.html
Other stuff http:[EMAIL PROTECTED]/
Arachne, The Web Browser for DOS
Open the 'DOOR' to the WWW. Keep the 'windows' closed.
http://arachne.browser.org/ http://arachne.cz/