• 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
Opening files in Illustrator CS3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:

  1. How do I get Illustrator to resolve the alias to a file? Or
  2. Can I pass parameters to Illustrator via the shell script option?
  3. 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

  • Follow-Ups:
    • Re: Opening files in Illustrator CS3
      • From: Shane Stanley <email@hidden>
    • Re: Opening files in Illustrator CS3
      • From: Stan Cleveland <email@hidden>
  • Prev by Date: Re: Mail scripting once more
  • Next by Date: Re: Totally OT...
  • Previous by thread: Re: Mail scripting once more
  • Next by thread: Re: Opening files in Illustrator CS3
  • Index(es):
    • Date
    • Thread