home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Acorn User 10
/
AU_CD10.iso
/
Archived
/
Updates
/
Ghostscript6
/
GSapp6
/
!GhostScr
/
!Boot
next >
Wrap
Text File
|
2000-05-04
|
2KB
|
57 lines
If "<GhostScript$Dir>" = "" then Set GhostScript$Dir <Obey$Dir>
| INSTALLATION CHECK - comment all of this out if you haven't got IfThere
set GSCheck$Path <GS_LIB>
| Check to see if Ghostscript is installed properly, try to find gs_init/ps
| This is version 5_50 so test there first
ifthere <GhostScript$Dir>.6_01.lib.gs_init/ps then set GSOK 1 else set GSOK 0
| But this !Boot may have been copied to the 5_50 version as well
if "<GSOK>" = "0" THEN ifthere <GhostScript$Dir>.5_50.gs_init/ps then set GSOK 1
| I would like to check GS_LIB but that will be a tad complex (comma sep dirs)
if "<GSOK>" = "0" THEN ifthere GSCheck:gs_init/ps then set GSOK 1
|if "<GSOK>" = "0" THEN if "<GS_LIB>" <> "" then set GSOK 1
| If I couldn't find the gs_init/ps file there is no point in going on.
if "<GSOK>" = "0" THEN Error "Please check that Ghostscript is installed correctly, I can't find gs_init/ps in any of the proper places"
| END INSTALLATION CHECK
If "<Alias$@RunType_FF5>" = "" then Set Alias$@RunType_FF5 Run <GhostScript$Dir>.!Run %%*0
| WIMPSLOT
| Running in a taskwindow sounds like a good idea - process in the background
| Remove 'taskwindow "' and '" -quit -wimpslot 2000K' if it's not working
| If the wimpslot is too high, try reducing it!
| Wimpslot is also set in 'ghost' for when GView is processing, try changing
| there if you use !GView
|set alias$gsalias set alias$%%0 taskwindow "<GhostScript$Dir>.bin.%%0 %%%%*0" -quit -wimpslot 2000K
set alias$gsalias set alias$%%0 <GhostScript$Dir>.bin.%%0 %%%%*0
set alias$gs wimpslot -min 2000K |M <GhostScript$Dir>.gs %%*0
| The first few convert ps to something useful, args are
| ps2thingy inputfile.ps outputfile.ps any other gs command line args
gsalias ps2spr
gsalias ps2ps
gsalias ps2jpeg
gsalias ps2png
gsalias ps2pcx
gsalias ps2tiff
gsalias ps2pdf
gsalias ps2pdf12
gsalias ps2pdf13
gsalias pdf2ps
gsalias ps2sgi
gsalias gsbj
gsalias gsdj
gsalias gslj
gsalias ps2dsc
gsalias printafm
gsalias wftopfa
set alias$ps2ascii <GhostScript$Dir>.bin.ps2ascii %%*0
Iconsprites <GhostScript$Dir>.!Sprites
If "<File$Type_FF5>" = "" then Set File$Type_FF5 PoScript
unset GSCheck$Path
unset GSOK
unset gsalias