Answered
Exporting Ai with exportForScreens
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) ;
}