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

IllustratorSaveOptions - Compatibility Javascript reference for CC2019

Explorer ,
Jun 11, 2020 Jun 11, 2020

Copy link to clipboard

Copied

Hi all,

I'm trying to write into a Javascript to save back from the latest Ai2020 version 24.1.3 to CC2019.

I can't seem to find an updated reference that works for "Compatibility.ILLUSTRATOR19"

There is a suggestion here: scripting-constants-compatibility but just upping the version number from an existing script which I use to save back to Ai8 doesn't work. I receive the following error:

Screenshot 2020-06-11 at 14.03.55.png

 

 

 

 

 

 

 

I've tried swapping "19" for "CC", as per the display in the save as dialog panel but to no avail.

Code snippet is here:

// Save with AI2019 compatibility
// AI2019 save options  
var so = new IllustratorSaveOptions();
so.compatibility = Compatibility.ILLUSTRATOR19; 
so.pdfCompatible = true; 
so.embedLinkedFiles = false; 
so.embedICCProfile = true; 
 

// save as 2019 overwriting 2020 version  
doc.saveAs(File(originalDocPath + "/" + originalDocName + "_legacy.ai"), so);  

app.activeDocument.close();

 

Does anyone have any ideas on the update reference for compatibility to 2019 please?

Thanks.

TOPICS
Scripting , SDK

Views

2.1K

Translate

Translate

Report

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

correct answers 1 Correct answer

Community Expert , Jun 11, 2020 Jun 11, 2020

Hi,

I see the option is available at the link you specified but it does not work for me too. But I have one document "Adobe Illustrator Script Guide 2020", which does not have this value. Attached is the document. You can check the latest value added as ILLUSTRATOR17 on page 12 of the document. Attached screenshot from that page.

 

Screenshot 2020-06-11 at 7.14.24 PM.png

Link to the file

Scripting Guide 2020 

Votes

Translate

Translate
Adobe
Explorer ,
Jun 11, 2020 Jun 11, 2020

Copy link to clipboard

Copied

Seems like the current scripting reference is only effective up until version 17. Which isn't actually an issue for what I'm trying to achieve, so happy days!

Votes

Translate

Translate

Report

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 ,
Jun 11, 2020 Jun 11, 2020

Copy link to clipboard

Copied

Hi,

I see the option is available at the link you specified but it does not work for me too. But I have one document "Adobe Illustrator Script Guide 2020", which does not have this value. Attached is the document. You can check the latest value added as ILLUSTRATOR17 on page 12 of the document. Attached screenshot from that page.

 

Screenshot 2020-06-11 at 7.14.24 PM.png

Link to the file

Scripting Guide 2020 

Best regards

Votes

Translate

Translate

Report

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 ,
Jun 11, 2020 Jun 11, 2020

Copy link to clipboard

Copied

Thank you @Charu

Votes

Translate

Translate

Report

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 ,
Jun 11, 2020 Jun 11, 2020

Copy link to clipboard

Copied

CC2020 is v24, so CC2019 is v23

 

 

Compatibility.ILLUSTRATOR23;

 

[edit] hmm...it doesn't seem to work

 

Votes

Translate

Translate

Report

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 ,
Jun 11, 2020 Jun 11, 2020

Copy link to clipboard

Copied

Anything to do with the drop down listing CC Legacy as a file specification?

Votes

Translate

Translate

Report

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 ,
Jun 11, 2020 Jun 11, 2020

Copy link to clipboard

Copied

The latest Scripting Reference lists ILLUSTRATOR17, ILLUSTRATOR19, and ILLUSTRATOR24 as options.

 

I'm not sure how that marries up with CC (Legacy) in the UI. That implies it covers both v17 and 19. I wonder what differentiates those?

Votes

Translate

Translate

Report

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 ,
Jun 11, 2020 Jun 11, 2020

Copy link to clipboard

Copied

Hi,

Could you please share the latest reference. May be I am having different link but I have tried ILLUSTRATOR19, and it is not working, it gives an error.

 

And one question the number after in ILLUSTRATOR19 is actual version of Illustrator not year version of Illustrator?

Best regards

Votes

Translate

Translate

Report

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 ,
Jun 11, 2020 Jun 11, 2020

Copy link to clipboard

Copied

It's available here:

 

https://console.adobe.io/downloads

 

The number is always (or always has been) version rather than year. If for some reason they've mixed in versions and years with the latest release, that would be confusing.

Votes

Translate

Translate

Report

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 ,
Jun 11, 2020 Jun 11, 2020

Copy link to clipboard

Copied

Thanks for the link. Just to confirm this is the same scripting guide as @CharuRajput posted earlier on in the thread.

Thanks for all the responses everybody!

Votes

Translate

Translate

Report

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 ,
Jun 11, 2020 Jun 11, 2020

Copy link to clipboard

Copied

No, this is different. More updated version, as I have seen new option ILLUSTRATOR24 in the link provided by Doug_A_Roberts, 

Best regards

Votes

Translate

Translate

Report

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 ,
Jun 11, 2020 Jun 11, 2020

Copy link to clipboard

Copied

the latest guides might be wrong, ILLUSTRATOR19 is not listed in the APIcompatibilityCC2020.PNG

 

carlos

 

Votes

Translate

Translate

Report

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 ,
Jun 11, 2020 Jun 11, 2020

Copy link to clipboard

Copied

Right, ILLUSTRATOR19 is not working and thankyou so much for all these information 🙂

 

Best regards

Votes

Translate

Translate

Report

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 ,
Jun 11, 2020 Jun 11, 2020

Copy link to clipboard

Copied

it's my pleasure 🙂

Votes

Translate

Translate

Report

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 ,
Jun 11, 2020 Jun 11, 2020

Copy link to clipboard

Copied

It's definitely in the reference PDF. Where might one report these things?

Votes

Translate

Translate

Report

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 ,
Jun 11, 2020 Jun 11, 2020

Copy link to clipboard

Copied

I think there was an initiative in to fix the help files but I'm not sure if it was in the user voice or in the back room. 

Votes

Translate

Translate

Report

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 ,
Jun 11, 2020 Jun 11, 2020

Copy link to clipboard

Copied

ok, digging around a bit...

 

in CC2019 there was no such thing as Legacy format, we could only save as CC or down to each CS version. So, there was no matching compatibility specifically for CC2014-CC2018 in the API. 

 

Illustrator CC = Compatibility.ILLUSTRATOR17;

Illustrator CS6 = Compatibility.ILLUSTRATOR16;

cc2019SaveDialog.png

 

now that we have Legacy format, CC2020 became version 24 and all previous CC versions kept v17.

 

Illustrator CC2020 = Compatibility.ILLUSTRATOR24;

Illustrator CC Legacy = Compatibility.ILLUSTRATOR17;

Illustrator CS6 = Compatibility.ILLUSTRATOR16;

cc2020SaveDialog.png

 

thanks

Carlos

Votes

Translate

Translate

Report

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 ,
Jun 11, 2020 Jun 11, 2020

Copy link to clipboard

Copied

Thanks @CarlosCanto for the thorough explanation.

Votes

Translate

Translate

Report

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 ,
Jun 11, 2020 Jun 11, 2020

Copy link to clipboard

Copied

my pleasure 🙂

Votes

Translate

Translate

Report

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
Enthusiast ,
Feb 04, 2021 Feb 04, 2021

Copy link to clipboard

Copied

LATEST

Thanks Carlos! Confirmed with a switch case save block of mine:

 

    case "CC" : //Legacy CC
        return Compatibility.ILLUSTRATOR17;
    break;
    case "CC2020" : //CC V2 - Not backwards compatible CC, CC2014-CC2019 
    return Compatibility.ILLUSTRATOR24;
    break;
    /*******
     * These do not work or exist
     *******//*
    case "CC2014" : 
        return Compatibility.ILLUSTRATOR18;
    break;
    case "CC2015" : 
        return Compatibility.ILLUSTRATOR19;
    break;
    case "CC2016" : 
    return Compatibility.ILLUSTRATOR20;
    break;
    case "CC2017" : 
    return Compatibility.ILLUSTRATOR21;
    break;
    case "CC2018" : 
    return Compatibility.ILLUSTRATOR22;
    break;
    case "CC2019" : 
    return Compatibility.ILLUSTRATOR23;
    break;
    case "CC2021" :
    return Compatibility.ILLUSTRATOR25;
    break;*/

 

Adding comment for posterity sake, in case people are searching for 18-23, and need quick reference to CC versions.

Votes

Translate

Translate

Report

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