Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

applescript for saving ai files to pdf with specific preset not working

$
0
0

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


Viewing all articles
Browse latest Browse all 12845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>