home *** CD-ROM | disk | FTP | other *** search
- /* A talkrequest.rx for use with KS 3.0+, but without rexxreqtools.library */
- /* Fixed by JanusMan on #amiga ~11/28/94 */
- /* Fixed sommore by BRG based on ideas from Andreas S. Oesterhelt 12/08/94 */
- /* Fixed a minor bug that caused it to fail. --BRG 04/20/95 */
-
- NL = '0a'x
- SIGNAL ON ERROR
-
- PARSE ARG file modus
-
-
- address command
- ':C/LoadLib :SYS/libs/ixemul.library'
- 'Assign ghostscript: :Pearls/gfx/ghostscript'
-
- if file=="" then do
- failat 21
- 'RequestFile >t:ans TITLE "Postscript-Datei wählen" PATTERN "#?.ps"'
- call open(answer,"t:ans","R")
- file=readln(answer)
- call close(answer)
- end
-
- if modus="" then do
- 'RequestChoice >t:ans "GhostView" "Anzeige wählen" "Fenster" "High" "Low" "Super" "A2024" "ABBRUCH"'
- call open(ans,"t:ans","R")
- wert=readln(ans)
- select
- when wert=="0" then exit
- when wert=="1" then modus=""
- when wert=="2" then modus="_high"
- when wert=="3" then modus="_low"
- when wert=="4" then modus="_super"
- when wert=="5" then modus="_a2024"
- otherwise exit
- end
- call close(ans)
- end
- else modus='_'||word(modus,1)
-
- if modus=="_window" then modus=""
-
- 'gs -sDEVICE=amiga'||modus||' '||file
-
- exit
-
-
- ERROR:
- exit
-