• 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: illustrator .. Pdfs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: illustrator .. Pdfs


  • Subject: Re: illustrator .. Pdfs
  • From: Olivier Ringenbach <email@hidden>
  • Date: Wed, 17 Nov 2004 22:37:16 +0100

> I don't think that the syntax in the Illustrator CS dictionary is correct,
> as upon executing the below example code, Illustrator returns cannot get
> file.
>
> tell application "Illustrator CS"
>     activate
>     open file myFile with options {class:PDF options, page:2} without
> dialogs
> end tell
>
> If the open line only reads "open file myFile" all works ok. If I set user
> interaction levels to never interact then and only then will the dialogs
> suppress. Looks like a dysfunctional-ity of AICS, as my syntax is as far as
> I understand, correct.

AI's Dict is correct; there's only one open option (i.e. update legacy text
boolean). What you're interested in is the Class PDF options: Options which
may be supplied when opening a PDF file

So...

tell application "Illustrator CS"
    set user interaction level to never interact
    set page of PDF file options of settings to 2
    open file myfile without dialogs
    set user interaction level to interact with all
end tell

--
Olivier


 _______________________________________________
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: illustrator .. Pdfs
      • From: waynemelrose <email@hidden>
  • Prev by Date: Focus window
  • Next by Date: Re: Fonts in InDesign CS
  • Previous by thread: Re: illustrator .. pdfs
  • Next by thread: Re: illustrator .. Pdfs
  • Index(es):
    • Date
    • Thread