Highlighted

IllustratorSaveOptions - Compatibility Javascript reference for CC2019

Community Beginner ,
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.

Adobe Community Professional
Correct answer by Charu Rajput | Adobe Community Professional

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 

Topics

Scripting, SDK

Views

538

Likes

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

IllustratorSaveOptions - Compatibility Javascript reference for CC2019

Community Beginner ,
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.

Adobe Community Professional
Correct answer by Charu Rajput | Adobe Community Professional

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 

Topics

Scripting, SDK

Views

539

Likes

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 Beginner ,
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!

Likes

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
Reply
Loading...
Adobe Community Professional ,
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

Likes

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
Reply
Loading...
Community Beginner ,
Jun 11, 2020

Copy link to clipboard

Copied

Thank you @Charu

Likes

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
Reply
Loading...
Adobe Community Professional ,
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

 

Likes

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
Reply
Loading...
Adobe Community Professional ,
Jun 11, 2020

Copy link to clipboard

Copied

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

Likes

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
Reply
Loading...
Adobe Community Professional ,
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?

Likes

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
Reply
Loading...
Adobe Community Professional ,
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

Likes

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
Reply
Loading...
Adobe Community Professional ,
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.

Likes

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
Reply
Loading...
Community Beginner ,
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!

Likes

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
Reply
Loading...
Adobe Community Professional ,
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

Likes

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
Reply
Loading...
Adobe Community Professional ,
Jun 11, 2020

Copy link to clipboard

Copied

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

 

carlos

 

Likes

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
Reply
Loading...
Adobe Community Professional ,
Jun 11, 2020

Copy link to clipboard

Copied

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

 

Best regards

Likes

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
Reply
Loading...
Adobe Community Professional ,
Jun 11, 2020

Copy link to clipboard

Copied

it's my pleasure 🙂

Likes

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
Reply
Loading...
Adobe Community Professional ,
Jun 11, 2020

Copy link to clipboard

Copied

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

Likes

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
Reply
Loading...
Adobe Community Professional ,
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. 

Likes

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
Reply
Loading...
Adobe Community Professional ,
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

Likes

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
Reply
Loading...
Community Beginner ,
Jun 11, 2020

Copy link to clipboard

Copied

Thanks @CarlosCanto for the thorough explanation.

Likes

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
Reply
Loading...
Adobe Community Professional ,
Jun 11, 2020

Copy link to clipboard

Copied

my pleasure 🙂

Likes

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