Question
JS: CS4 print active document
Hello
Scripting guide gives this line as an example to print the active document
app.activeDocument.print();
I also want to print using a print preset. The guide indicates this text:
To print a document using a printer preset, include the printer preset in the print command.
If my preset name is: Myoutput
How would I add the preset name? Would it be:
app.activeDocument.print(Myoutput);
or
app.activeDocument.print();
print = Myoutput
Trying to run this single line script is also giving me an error
app.activeDocument.print();
JavaScript error!
Error Number 8
Error String: "Syntax error"
Line: 1
Source "{\rtf1\mac\ansicpg1000\cocartf824
\cocoasubrtf410"
Offending Text: "\"
(Serious Newbie alert)
Scripting guide gives this line as an example to print the active document
app.activeDocument.print();
I also want to print using a print preset. The guide indicates this text:
To print a document using a printer preset, include the printer preset in the print command.
If my preset name is: Myoutput
How would I add the preset name? Would it be:
app.activeDocument.print(Myoutput);
or
app.activeDocument.print();
print = Myoutput
Trying to run this single line script is also giving me an error
app.activeDocument.print();
JavaScript error!
Error Number 8
Error String: "Syntax error"
Line: 1
Source "{\rtf1\mac\ansicpg1000\cocartf824
\cocoasubrtf410"
Offending Text: "\"
(Serious Newbie alert)
