• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Print Setup problems in Quark
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Print Setup problems in Quark
      • From: Steve Kump <email@hidden>
  • Prev by Date: Missing Illustrations Crash
  • Next by Date: Re: read write basics
  • Previous by thread: Re: Print Setup problems in Quark
  • Next by thread: Re: Print Setup problems in Quark
  • Index(es):
    • Date
    • Thread