Re: Opening files in Illustrator CS3
Re: Opening files in Illustrator CS3
- Subject: Re: Opening files in Illustrator CS3
- From: Stan Cleveland <email@hidden>
- Date: Thu, 17 Apr 2008 15:49:49 -0700
- Thread-topic: Opening files in Illustrator CS3
On 4/17/08 2:28 PM, "Charlie Rieger" wrote:
>
> I¹m trying to get a script to run as a folder action to automate
> opening/processing/ saving of Illustrator CS3 files. My initial
> script used Illustrator to open the files:
>
>
> on adding folder items to the_folder after receiving the_items
> repeat with i from 1 to number of items in the_items
> set this_item to item i of the_items as alias
> tell application "Adobe Illustrator"
> activate
> open this_item
>
> This worked fine on files, but Illustrator complained when I feed
> it an alias to a file...
Give this a try Charlie. I wasn't able to test it, but believe it
should work.
on adding folder items to the_folder after receiving the_items
repeat with i from 1 to number of items in the_items
tell application "Finder"
set this_item to original item of item i of the_items
end tell
tell application "Adobe Illustrator"
activate
open this_item
HTH,
Stan C.
_______________________________________________
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