Copy link to clipboard
Copied
I'm encountering a problem when attempting to retrieve a list of PDF preset names in both AppleScript and JavaScript. Here are the steps I'm performing:
1) Launch Illustrator
2) Run the following AppleScript:
tell application "Adobe Illustrator"
PDF presets
end tell
or JavaScript:
app.PDFPresetsList;
When I run the AppleScript, I receive an error: "Adobe Illustrator got an error: an Illustrator error occurred: 1128353350 ('FNAC')" number 1200. (Sometimes, 'ACVI' is listed instead of 'FNAC'.)
When I run the JavaScript, I receive: "Result: undefined"
If I retrieve Illustrator's properties via AppleScript, I can see that the PDF presets property appears as 'missing value'.
The only workaround I've found is to manually go to Illustrator and choose "Edit > Adobe PDF Presets", and then immediately click "OK" to close the window. Whatever this does seems to fix the problem, and if I run the scripts again, they produce the correct results until Illustrator is relaunched, at which time the problem begins again. I'm wondering if anyone else is experiencing this, and if anyone has come up with any other workarounds, preferably one that doesn't require manual work.
Much appreciated.
-Ben
Copy link to clipboard
Copied
yes, I'm on windows, but everyone in the original post was on mac and some didn't have the issue...
Copy link to clipboard
Copied
I don't believe I ever suggested that it happens on all Macs. However, I can say that it happens 100% of the time in CC 2014 on 4 Macs in our company, and several at our client's. On three of our machines, there are multiple versions of AI installed, but on another, there is only CC 2014 installed on a brand new, clean install of Mac OS X. That machine has only the standard PDF Presets that get installed as part of the Adobe CC 2014 install, so I tend not to believe that the problem is somehow installation-related.
Even if it doesn't, in fact, happen on 100% of all Macs, I'm pretty sure it's still a bug...
Copy link to clipboard
Copied
it could be a bug, lets hope someone else has stumbled upon a solution...I mean a fellow user.
Copy link to clipboard
Copied
Any update on this ??
Copy link to clipboard
Copied
I just had the same problem. I worked in Illustrator and then edited one PDF preset in InDesign. After that my Apple Script reported the same error! My solution: Restart, open an Illudtrator document, export as PDF with one of my PDF presets - and then my script worked fine again.
Copy link to clipboard
Copied
Do you have a document open while to try to read the presets? From what I recall I had to open a temp document to read Fonts and PDF presets, then close it again without saving.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now