Hello all,
my applescript for saving ai files to pdf with my specific preset (A1) not working anymore (after installing cc 2014)
it worked for years .....
I need to work in CS6 still so I have both ai's on my machine
I copied my specific PDF preset in all PDF preset folders on my sysytem
It seems that the script doesn't find my specific pdf preset anymore
Is this still a bug ?
I get a illustrator error report 1129270854 ('FNOC')
The script:
-- fileList is a list of aliases to Illustrator files
-- destFolder is an alias to a folder where PDF files are saved
on SaveFilesAsPDF(fileList, destFolder)
set destPath to destFolder as Unicode text
repeat with aFile in fileList
tell application "Finder" to set fileName to name of aFile
set newFilePath to destPath & fileName
tell application "Adobe Illustrator"
open aFile
save current document in file newFilePath as pdf with options {class:PDF save options, PDF preset:"A1"}
close current document saving no
end tell
end repeat
end SaveFilesAsPDF
-- Call handler
set sourceFolder to choose folder with prompt "Source folder?"
tell application "Finder" to set fileList to every file of folder sourceFolder as alias list
set destFolder to choose folder with prompt "Destination folder?"
SaveFilesAsPDF(fileList, destFolder)
Why is it not working anymore, anyone?
thank you
pat