home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Meeting Pearls 3
/
Meeting_Pearls_III.iso
/
Pearls
/
comm
/
Internet
/
ALynx
/
goodies
/
Nudel_MALS.LHA
/
MosaicSave
< prev
next >
Wrap
AmigaDOS Script File
|
1995-06-05
|
2KB
|
53 lines
.key viewer/a,name/a
.bra {
.ket }
; Quickly written by Leo Davidson (P0T-NOoDLE / Gods'Gift / ATX).
; If you have any problems, e-mail me "leo@hampschl.demon.co.uk", or
; look for "Nudel" in #Amiga on IRC.
;
; This is a script for AMosaic, ALynx, or anything similar really.
; It requires the commands "Basename" (there are numerous versions of this),
; "requestchoice" & "requestfile" (which come with OS3).
;
; The script will OPTIONALLY ask if you want to view the file, and then
; give you a file-requester with which to save the file.
;
;
; Setup your mailcap like this:
;
; type/type; <Path To This Script> <Viewer Command> %s
;
; (%s will be replaced by the filename by ALynx/AMosaic)
; If you set <Viewer Command> to "NOVIEW", you will only
; be prompted with a filerequester.
;
; Make SURE that the "S"cript bit is set on this file!
;
; Examples:
;
; audio/*; AmiTCP:Tools/MosaicSave DH0:Tools/Music/Utils/DSound %s
; text/x-aguide; AmiTCP:Tools/MosaicSave "Multiview FONT=P0T-NOoDLE.font FONTSIZE=8 PubScreen=FileViewers" %s
; application/*; AmiTCP:Tools/MosaicSave NOVIEW %s
;
; People using ALynx with the TempDir in RAM may wish to un-comment the last
; line which deletes the tempfile after saving it to disk. (I don't *think*
; that ALynx does this automatically, as it buffers everything in case you
; want to retrace to it).
;
; (As they always should be, the instructions are longer than the thing itself :-)
failat 21
IF {viewer} NOT EQ "NOVIEW"
;;;;;;; IF `requestchoice Title="MosaicSave" Body="View this thing?" Gadgets="YES|NO" PubScreen="Mosaic"` EQ 1
IF `requestchoice Title="MosaicSave" Body="View this thing?" Gadgets="YES|NO"` EQ 1
{viewer} >NIL: <NIL: {name}
ENDIF
ENDIF
set savename `basename {name}`
;copy >NIL: {name} to `requestfile Drawer=DLS: File=$savename title="Save as..." savemode noicons pubscreen=Mosaic`
copy >NIL: {name} to `requestfile Drawer=DLS: File=$savename title="Save as..." savemode noicons`
; If they cancel the requestor, copy will fail, but will not cause any errors.
unset savename
;delete >NIL: {name} QUIET