• 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
Quark print property mismatch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Quark print property mismatch


  • Subject: Quark print property mismatch
  • From: Brett Conlon <email@hidden>
  • Date: Thu, 19 Jan 2006 17:08:44 +1000


Hi all,

Hopefully there's a simple answer to the following.

The following script asks the user to choose the type of output they want. It then uses the two words returned as separate values.

The first word (eg. A4) works fine because the property uses quotes to define the value (eg. paper size:"A4").

The second value stops the script with an error as it requires a value without quotes (orientation:portrait)

set PaperSize to item 1 of (choose from list {"A4 Portrait", "A4 Landscape", "A3 Portrait", "A3 Landscape", "Custom"} with prompt "Choose the appropriate PDF paper size:")
set pSize to first word of PaperSize
set pOrient to word 2 of PaperSize
tell document 1
        set properties of print setup to ¬
                {separation:false, print spreads:false, collate:false, include blank pages:false, print thumbnails:false, back to front:false, page sequence:odd pages, registration marks:centered, registration marks offset:"6 pt", tiling:off, printer type:"Adobe PDF", paper size:pSize, paper offset:"0 mm", page gap:"0 mm", reduce or enlarge:"100%", fit in area:false, page position:center position, orientation:pOrient, print colors:composite CMYK, resolution:1200, halftone screen:"100"}
        print
end tell

The error is: "A descriptor type mismatch occurred"

From the Events Log I can see the following showing in the properties: orientation:"Portrait"

Is it possible to have it return just portrait (sans quotes)?

Many thanks,

Cojcolds
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Quark print property mismatch
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: text item delimiters
  • Next by Date: Re: Quark print property mismatch
  • Previous by thread: apologies for multiple messages
  • Next by thread: Re: Quark print property mismatch
  • Index(es):
    • Date
    • Thread