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

Illustrator scripting: Can't save the illustration dialog box

Community Beginner ,
Nov 05, 2020 Nov 05, 2020

Copy link to clipboard

Copied

I have a script that seemed to work yesterday, but today I am getting a popup that says "Can't save the illustration", followed by a popup that says "The object "Export As" is not currently available."

 

 
 

error1.png

error2.png

 

 

If I hit "Stop", I get this error in VSCode:

 

Runtime Error: Error Code# 1200: an Illustrator error occurred: 1346458189 ('PARM') @ file '
 
The code being run looks like this:
 

 

function exportFileToSvg(dest, doc) {
    var exportOptions = new ExportOptionsWebOptimizedSVG();
    var type = ExportType.WOSVG;
    var fileSpec = new File(dest);
    exportOptions.embedRasterImages = true;
    exportOptions.cssProperties = SVGCSSPropertyLocation.PRESENTATIONATTRIBUTES;
    // exportOptions.cssProperties = SVGCSSPropertyLocation.ENTITIES;
    exportOptions.svgMinify = true;
    doc.exportFile(fileSpec, type, exportOptions);
}

 

 
I am able to export as PNG from within the Illustrator application, just not from the script.
 
The about box indicates that it is Illustrator 25.0; VSCode lists the engine version as 25.064.
 
I'm also getting the same behavior if I'm using Illustrator 24.
 
TOPICS
Bug , Scripting

Views

335

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 Beginner , Nov 05, 2020 Nov 05, 2020

It appears this was failing because the path (dest) that was being passed in didn't exist.

 

Kind of an unfortunate error message, but I have this working again.

Votes

Translate

Translate
Adobe
Community Beginner ,
Nov 05, 2020 Nov 05, 2020

Copy link to clipboard

Copied

It appears this was failing because the path (dest) that was being passed in didn't exist.

 

Kind of an unfortunate error message, but I have this working again.

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 ,
Nov 06, 2020 Nov 06, 2020

Copy link to clipboard

Copied

LATEST

awesome, thanks for the update

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