Re: illustrator .. Pdfs
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