I was using this script in illustrator cs4 on a mac running 10.5 and all was good
tell application "Adobe Illustrator"
activate
set theName to name of current document
set theNamecount to count of theName
set thePath to the file path of current document as string
set pathCount to count of thePath
set pathCount to (pathCount - theNamecount)
set newPath to (text 1 thru pathCount of thePath)
set newName to "Die for " & theName
set finalPath to newPath& newName
savecurrent documentinfilefinalPathaseps¬
with options¬
{class:EPS save options, compatibility:Illustrator 8, preview:color Macintosh, embed linked files:true, include document thumbnails:true, CMYK PostScript:true, PostScript:level 2, embed all fonts:true}
beep 2
activate
end tell
Then I upgraded to Snow Leopard now when i run the script I get this message
error "Can’t make «data fss 9CFF84A2B8001F4F75747369646520436F7665722046696E616C2031234238413241332E61690000000064E76 706D8298F1EE9D902207CE1FFBF28E1FFBF88578F1EE9D90220» into type string." number -1700 from«data fss 9CFF84A2B8001F4F75747369646520436F7665722046696E616C2031234238413241332E61690000000064E76 706D8298F1EE9D902207CE1FFBF28E1FFBF88578F1EE9D90220» tostring
Thanks in advance.
Rod