I wrote this script over a year ago. It continues to work on other boxes it is installed on in my department. While writing another script the other day the interaction between Illustrator and Finder stopped. When i ran this old script which I know works, it failed on my box as well but produced no runtime error messages.
set fileTypes to {“EPSF”, "PDF ", “ART5”, “AI”} – file types available to resave as Illustrator
– get a sourceFolder that holds the files to resave as AI
set sourceFolder to (choose folder with prompt “Choose a folder with files to resave as Illustrator:”) as text
– get a list of files of the defined type in the sourceFolder
tell application “Finder” to set workingFiles to (every file of folder sourceFolder whose file type is in fileTypes) as alias list
– now you have your fileList argument
– get a destinationFolder to hold the AIs
set destinationFolder to (choose folder with prompt “Choose a folder to hold the Illustrator files:”) as text
SaveFilesAsEPS(workingFiles, destinationFolder)
on SaveFilesAsEPS(fileList, destinationFolder)
set destinationPath to destinationFolder as string
repeat with aFile in fileList
tell application “Finder” to set fileName to (name of aFile)
set newFilePath to destinationPath & fileName
tell application “Adobe Illustrator”
activate
open aFile
convert to paths (every text frame of current document)
set epsOptions to {class:EPS save options, CMYK PostScript:true, embed all fonts:true, embed linked files:false, include document thumbnails:false, PostScript:level 3, preview:none}
save current document in file newFilePath as eps with options epsOptions
close current document saving no
end tell
end repeat
end SaveFilesAsEPS
Other scripts that only involve Illustrator still run from the scripts menu. Anyone know what I can do to restore the connection. Have tried deleting preference files and Zapping the PRAM. Ran disk utility which is returning alot of JAvaFramework permission errors errors. Could that be it?
Model: Mac Pro
AppleScript: 2.1.2
Browser: Firefox 3.6.12
Operating System: Mac OS X (10.6)