• 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: waynemelrose <email@hidden>
  • Date: Wed, 17 Nov 2004 22:57:37 +0100

BINGO!!

thanks to everyone for the comments, this code below is exactly what i was looking for..

i knew it was out there somewhere..

you are a legend olivier!


On Nov 17, 2004, at 10:37 PM, Olivier Ringenbach wrote:

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:
email@hidden


This email sent to email@hidden

_______________________________________________ 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
References: 
 >Re: illustrator .. Pdfs (From: Olivier Ringenbach <email@hidden>)

  • Prev by Date: Re: Fonts in InDesign CS
  • Next by Date: Re: FMP crashes on get cell
  • Previous by thread: Re: illustrator .. Pdfs
  • Next by thread: FYI - MacReporter & RSS
  • Index(es):
    • Date
    • Thread