Opening files in Illustrator CS3
Opening files in Illustrator CS3
- Subject: Opening files in Illustrator CS3
- From: Charlie Rieger <email@hidden>
- Date: Thu, 17 Apr 2008 17:28:30 -0400
- Thread-topic: Opening files in Illustrator CS3
Title: Opening files in Illustrator CS3
Hello list,
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...
After a bit of testing, I got the Finder to open files and alias’ to files using the following:
tell application "Finder"
set theFile to (("open ") & "\"" & POSIX path of this_item as text) & "\""
do shell script (("open ") & "\"" & POSIX path of this_item as text) & "\""
end tell
All well and good, except that I now can’t tell illustrator to ignore dialogs, force color space, or any number of other options that I can access via the first method.
My question is:
- How do I get Illustrator to resolve the alias to a file? Or
- Can I pass parameters to Illustrator via the shell script option?
- Am I going about this entirely wrong?
I am relatively new to apple scripting, so please forgive if I have left out any pertinent information that might help with an answer.
Thanks,
Charlie
_______________________________________________
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