Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Undefined PDF Presets in Illustrator CS5

New Here ,
Apr 10, 2011 Apr 10, 2011

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

TOPICS
Scripting
8.9K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Aug 26, 2014 Aug 26, 2014

yes, I'm on windows, but everyone in the original post was on mac and some didn't have the issue...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Aug 26, 2014 Aug 26, 2014

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...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 27, 2014 Aug 27, 2014

it could be a bug, lets hope someone else has stumbled upon a solution...I mean a fellow user.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 15, 2017 Feb 15, 2017

Any update on this ??

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 26, 2018 Feb 26, 2018

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 26, 2018 Feb 26, 2018
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines