Skip to main content
Legend
January 17, 2025
Answered

Exporting Ai with exportForScreens

  • January 17, 2025
  • 1 reply
  • 416 views
Starting with Illustrator 2025 (29.2), Ai and EPS can be exported with export for screens. How to call it from ExtendScript?

I tried ExportForScreensType.SE_AI, ExportForScreensType.SE_ILLUSTRATOR, etc. as when using exportForScreens, but it was undefined. It is fine even though the functionality does not exist because it can be done with saveAs, but if it is provided by a new, fast-moving technology, I would like to use that.

Here is the code I tried.
try {
  // sccess
  // alert(ExportForScreensType.SE_SVG) ;
  // --> 'ExportForScreensType.SE_SVG'

  // error (undefined)
  alert(ExportForScreensType.SE_AI) ;
  // alert(ExportForScreensType.SE_Ai) ;
  // alert(ExportForScreensType.SE_ai) ;
  // alert(ExportForScreensType.SE_aI) ;
  // alert(ExportForScreensType.SE_ILLUSTRATOR) ;
  // alert(ExportForScreensType.SE_Illustrator) ;
  // alert(ExportForScreensType.ILLUSTRATOR) ;
  // alert(ExportForScreensType.Illustrator) ;
  // alert(ExportForScreensType.SE_EPS) ;
  // alert(ExportForScreensType.SE_Eps) ;
  // alert(ExportForScreensType.SE_eps) ;
  // alert(ExportForScreensType.EPS) ;
  // alert(ExportForScreensType.Eps) ;
  // alert(ExportForScreensType.eps) ;
} catch(e) {
  alert(e) ;
}
Correct answer Sergey Osokin

The v29.2 object model doesn't seem to have changed much from previous releases. I also note that the WebP format is not available for ExtendScript either. I wrote about this in the Adobe Illustrator Prerelease Slack, although the problems of script authors are not taken into account 🙂

1 reply

Sergey Osokin
Sergey OsokinCorrect answer
Inspiring
January 17, 2025

The v29.2 object model doesn't seem to have changed much from previous releases. I also note that the WebP format is not available for ExtendScript either. I wrote about this in the Adobe Illustrator Prerelease Slack, although the problems of script authors are not taken into account 🙂

sttk3Author
Legend
January 17, 2025

Thanks for the information, that is unfortunate. Will wait a little longer and give up if no additional information is provided.