Re: Quark Paper Size
Re: Quark Paper Size
- Subject: Re: Quark Paper Size
- From: Shane Stanley <email@hidden>
- Date: Wed, 18 Jul 2001 21:52:08 +1000
On 18/7/01 9:24 PM +1000, Alberto Salvagnini, email@hidden, wrote:
>
can someone tell me why this doesn't work?
>
>
tell application "QuarkXPress 3.32r5"
>
tell document 1
>
set paper size to "A4"
>
end tell
>
end tell
>
>
--> QuarkXPress 3.32r5 got an error: Can't set paper size of document 1
>
to "A4".
>
>
>
"A4" exists in the paper size list if I get the print setup and is also
>
selected if I do this in the document
"paper size" is a property of print setup, so you would have to do something
like:
tell application "QuarkXPress 3.32r5"
tell document 1
tell print setup
set paper size to "A4"
end tell
end tell
end tell
But be warned that scripting of print setup in v3.32 is very buggy; I'd be
surprised if this worked unless you had at least opened the print dialog
"manually" at some stage first.
--
Shane Stanley, email@hidden