Does anyone have experience with scripting Adobe Illustrator 9.0 and 9.02
Does anyone have experience with scripting Adobe Illustrator 9.0 and 9.02
- Subject: Does anyone have experience with scripting Adobe Illustrator 9.0 and 9.02
- From: "Mak, Maxwell" <email@hidden>
- Date: Mon, 24 Sep 2001 23:13:33 -0700
Hi all,
I have started a project on automating file conversion using Mac OS 9.2.1
and Adobe Illustrator 9.0.2. The problem I now have is to simply get
Illustrator to close the current document. The following is the code that I
used. The commented lines have also been used but the same error shown.
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
The error message that I got from running the script is as follows:
<<...OLE_Obj...>>
I have run the above script using a combination of MacOS 9.2.1, 9.1,
Illustrator 9.0, and 9.0.2. The version of Applescript is 1.6 with
CarbonLib 1.4. It seemed to me that the Applescript support of Illustrator
9 does not work too well. The script I used was actually from the Scripting
Guide that comes with the Installer CD.
Can somebody help or point me to the right direction?
-Maxwell Mak