7.4

Table Of Contents
Possible Values
Value: Description:
0 PlanetPress during document design
1 Preview or Softproof as Printer Queue
2 Preview or Softproof as PlanetPress Image
3 Preview or Softproof as PlanetPress Fax
4 Printer Preview
5 Printer Hard Disk
6 Printer Memory
7 Host Computer
8 Flash Memory
9 PlanetPress Image
10 PlanetPress Fax
11 PlanetPress Suite Workflow Tools
Code Sample Example
This example changes some colors to shades of gray for greater legibility on a fax.
Example
setlinewidth(0.1) %Select a thick pen
if(&printermode=10) %If Destination is Fax
setfillcolor([5,5,5,5]) %Set fill to light gray
setstrokecolor([0,0,0,100]) %Set pen to black
elseif()
%Otherwise,set fill colour to yellow
setfillcolor([0,0,50,0])
setstrokecolor([100,100,0,0]) %Set pen colour to blue
endif()
rectstroke(0,0,3,3) %Display rectangle
rectfill(0,0,3,3)
Script (system object)
The script system object is available in both PlanetPress Design and PlanetPress Suite Workflow Tools scripting environments.
It contains properties describing the current external script.
&script is not used within PlanetPress Design and is not a PlanetPress Talk variable. It is a variable used within scripts
in JScript, VBScript, Perl or Python called from PlanetPress Talk in a PlanetPress Design Document, using the "Exec-
ScriptFile (function)" (page 486) command.
Syntax
l &script.filename string
l &script.paramstring string
l &script.returnvalue string
©2010 Objectif Lune Inc - 249 -