Re: Does anyone have experience with scripting Adobe Illustrator 9.0 and 9.02
Re: Does anyone have experience with scripting Adobe Illustrator 9.0 and 9.02
- Subject: Re: Does anyone have experience with scripting Adobe Illustrator 9.0 and 9.02
- From: Simon Topliss <email@hidden>
- Date: Tue, 25 Sep 2001 09:26:32 +0100
Maxwell,
I tested your script example here running on Mac OS 9.2.1 and Illustrator
9.0.2 and the first and third (commented) version of your script work as
expected. No errors, no problems.
The line
>
-- close theFile saving no
will not work as Illustrator requires a reference to the document, not an
alias reference.
Do you have any osaxen installed that may be causing the error? I'm pretty
sure this isn't the problem, but make sure you have all five extensions that
start with "Security" enabled in your extensions folder and try again.
Your script _should_ work. I've been scripting AI9 since its release and its
AppleScript implementation is one of the best around. Illustrator 10
(announced yesterday) takes this to another level again and will be the
standard to which others are measured (no exaggeration). Kudos Adobe.
Simon
On 25/9/01 7:13 am, "Mak, Maxwell" <email@hidden> wrote:
>
set theFile to (choose file)
>
tell application "Adobe Illustrator. 9.0.2"
>
open theFile
>
close document 1 saving no
>
-- close theFile saving no
>
-- close current document saving no
>
end tell