Open Files for Illustrator
Open Files for Illustrator
- Subject: Open Files for Illustrator
- From: Ben Broad <email@hidden>
- Date: Wed, 27 Oct 2004 20:18:54 +1000
Hey All,
I'm not having any luck automating a script on all the files in a folder.
I've tried:
set the topLevelFolder to (choose folder)
tell application "Illustrator CS"
open file 1 of topLevelFolder
end tell
-- Illustrator CS got an error: File some object wasn't found.
set the topLevelFolder to (choose folder)
tell application "Illustrator CS"
open document 1 of topLevelFolder
end tell
-- Illustrator CS got an error: Can't make some data into the expected type.
Illustrator's dictionary says:
open: Open the specified document file(s)
open -- the file(s) to be opened
set the topLevelFolder to (choose folder)
tell application "Finder"
set foo to files of the
-- Finder got an error: Can't get every file of alias "macg4:Desktop:Lips script test:".
If I add the "as list" to the end of that line, the script moves on. However, I can't then get it to open anything.
Ben.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden