Re: Print Setup problems in Quark
Re: Print Setup problems in Quark
- Subject: Re: Print Setup problems in Quark
- From: JJ <email@hidden>
- Date: Fri, 06 Jul 2001 09:14:44 +0200
>
set print setup of document 1 to {orientation:"Landscape", paper
>
size:"11x17"}
>
print document 1
>
>
Sometimes it generates an error, saying the heavily detailed "Can't set
>
print setup of document 1 to {orientation:"Landscape", paper size:"11x17"}".
>
This does not occur every time, and in fact, if I re-run the script, it
>
often prints without an error!
>
>
I have not been able to find any consistency in the problem, but one quick
>
and dirty Band-Aid has been the following:
>
>
try
>
set print setup of document 1 to {orientation:"Landscape", paper
>
size:"11x17"}
>
print document 1
>
on error
>
set print setup of document 1 to {orientation:"Landscape", paper
>
size:"11x17"}
>
print document 1
>
end try
>
>
This has reduced the problems to very few, from very many. The paper size
>
and orientation varies, but all options are valid within the print setup
>
dialog of Quark.
>
>
Anything special I should know about scripting print settings in Quark that
>
might eliminate this?
>
At first, run this code and look the result or at Quark's dictionary,
"print setup record" entry:
tell application "QuarkXPress Passport(TM) 4.11"
document 1's print setup
end tell
--> *orientation* is not "string", but *landscape/portrait*
try this:
tell application "QuarkXPress Passport(TM) 4.11"
set document 1's print setup to {orientation:portrait}
end tell