home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Vectronix 2
/
VECTRONIX2.iso
/
FILES_01
/
SPECTR30.LZH
/
USCRIPT
/
STARTUP.PS
< prev
Wrap
Text File
|
1986-04-24
|
5KB
|
153 lines
%!PS-Adobe-2.0
%%Title: STARTUP.PS
%%Creator: Douglas N. Wheeler
%%CreationDate: 15 August 1990
%%Pages: 0
%%EndComments
%
% The most complete STARTUP.PS for printing Macintosh generated
% PostScript files with UltraScript.
%-----------------------------------------------------------------------------
% Uncomment (remove the %s) this section to enable printing of errors
%errordict
%/handleerror
% {
% $error begin
% /prt
% {
% dup type
% /stringtype ne
% {=string cvs} if
% show
% } def
% newerror
% {
% /newerror false store
% grestoreall
% initgraphics
% 30 30 moveto
% /Times-Italic findfont 14 scalefont setfont
% (POSTSCRIPT ERROR: ) prt
% errorname prt
% ( ) prt
% (OFFENDING COMMAND: ) prt
% /command load prt
% (ioerror) errorname ne
% {showpage} if
% } if
% end
% } put
%-----------------------------------------------------------------------------
statusdict begin
/setrealdevice null def % ignore
/execjob null def % ignore
% persistent
/pagecount {0} def % # of pages printed (we just return 0)
/pagestackorder {true} def % pages are collated in correct order
/setprintername {pop} def % ignore printer name change
/printername {( LaserWriter )} def % say we're named LaserWriter
/setsccbatch {pop pop pop} def % ignore
/sccbatch {pop 9600 0} def % 9600 baud, 0 parity
/setsccinteractive {pop pop pop} def % ignore
/sccinteractive {pop 9600 0} def % 9600 baud, 0 parity
/setdostartpage {pop} def % ignore
/dostartpage {false} def % we don't do startup pages
/setmargins {pop pop} def % ignore
/margins {0 0} def % margins of 0 0
/setpagetype {pop} def % ignore
/pagetype {0} def % default pagetype = letter
/setdefaulttimeouts {pop pop pop} def % ignore
/defaulttimeouts {0 60 30} def % return job, manual, and wait timeouts
/setpassword {pop pop true} def % ignore, return success
/checkpassword {pop true} def % ignore, return success
% /setidlefonts % (leave for now)
% /idlefonts % (leave for now)
/seteescratch {pop pop} def % ignore write to EEPROM
/eescratch {pop 0} def % can't read from EEPROM, return 0
% non-persistent
/setjobtimeout {pop} def % ignore
/jobtimeout {0} def % return 0 (never)
/manualfeedtimeout {60} def % return 60 seconds
/waittimeout {30} def % return 30 seconds
% /manualfeed {false} def % using paper tray
/prefeed {false} def % not supported
% /jobname null def % current job - who knows?
/printererror {pop pop} def % ignore
% /product {( LaserWriter )} def % say we're a LaserWriter
% /revision {0} def % return revison # of 0
statusdict /product ( LaserWriter ) put
%-----------------------------------------------------------------------------
systemdict begin
/oldscd
/setcachedevice load def % set oldscd to setcachedevice
/setcachedevice
{
0 0 moveto % make UltraScript happy
oldscd % call old routine
} bind def
/oldmoveto
/moveto load def % set oldmoveto to moveto
/moveto % replace moveto with our own
{
exch % check x value first
dup 7864 gt {pop 5000} if % if too high, lower it
dup -7864 lt {pop -5000} if % if too low, raise it
exch % check y value next
dup 8656 gt {pop 5000} if % if too high, lower it
dup -7072 lt {pop -5000} if % if too low, raise it
oldmoveto % call old moveto routine
} bind def
end
/oldlineto
/lineto load def % set oldlineto to lineto
/lineto % replace lineto with our own
{
exch % check x value first
dup 7864 gt {pop 5000} if % if too high, lower it
dup -7864 lt {pop -5000} if % if too low, raise it
exch % check y value next
dup 8656 gt {pop 5000} if % if too high, lower it
dup -7072 lt {pop -5000} if % if too low, raise it
oldlineto % call old lineto routine
} bind def
end
% This is still under construction...
/oldread
/read load def % set oldread to read
/read
{
oldread
dup true eq
{
pop
dup 10 eq {pop currentfile oldread pop} if
true
} if
} bind def
%-----------------------------------------------------------------------------
(___________________________________________________________) print flush
( ) print flush
(STARTUP.PS - by Douglas N. Wheeler @ Gadgets by Small, Inc.) print flush
(___________________________________________________________) print flush
( ) print flush