• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Open Files for Illustrator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Open Files for Illustrator
      • From: simeli <email@hidden>
  • Prev by Date: re: Code Completion suggestion
  • Next by Date: Re: Dice
  • Previous by thread: Re: applescript's text item delimiters
  • Next by thread: Re: Open Files for Illustrator
  • Index(es):
    • Date
    • Thread