Re: Adobe Illustrator do script command
Re: Adobe Illustrator do script command
- Subject: Re: Adobe Illustrator do script command
- From: KOENIG Yvan <email@hidden>
- Date: Thu, 04 Aug 2011 00:40:29 +0200
Le 4 août 2011 à 00:17, Jim Skibbie a écrit :
> I have an Applescript application that is interacting with Adobe Illustrator. One of the commands is:
>
> tell application "Adobe Illustrator"
> do script "Some Script" from "Some Action" without dialogs
> end tell
>
> … more stuff
>
> … save Illustrator file
>
> My problem is that when the command runs to "do script", which is a Action in Illustrator, Illustrator immediately returns command back to the Applescript which continues to run. The script does not wait for the Illustrator 'do script' to actually finish, and so a few more commands later, the Applescript tells Illustrator to save the file. The problem is, that the Illustrator Action may still be running and the file is not ready to be saved.
If you are running Lion, I'm not really surprised.
Adobe "forgot" to re-compile five scripts :
/Applications/Adobe Illustrator CS5.1/Scripting.localized/Sample Scripts.localized/AppleScript.localized/Analyze Documents.localized/Analyze Documents.app
/Applications/Adobe Illustrator CS5.1/Scripting.localized/Sample Scripts.localized/AppleScript.localized/Calendar.localized/Make Calendar.app
/Applications/Adobe Illustrator CS5.1/Scripting.localized/Sample Scripts.localized/AppleScript.localized/Contact Sheet Demo.localized/Contact Sheets.app
/Applications/Adobe Illustrator CS5.1/Scripting.localized/Sample Scripts.localized/AppleScript.localized/Export Flash Animation.localized/Export Flash Animation.app
/Applications/Adobe Illustrator CS5.1/Scripting.localized/Sample Scripts.localized/AppleScript.localized/Web Gallery.localized/Web Gallery.app
They are compiled for PowerPC only.
You must open them in the Script Editor,
compile them then trigger "Save As…" to save them on your HD.
I did the trick under 10.6.8.
I don't know if the editor may open these old apps.
Yvan KOENIG (VALLAURIS, France) jeudi 4 août 2011 00:40:23
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden