Script for ExportForScreensOptionsJPEG() not working.
Hello,
I've been trying to get the below code to work from the post below, but I just can't figure it out....any ideas??
Error Code# 1200: an Illustrator error occurred: 1128353364 ('TNAC') @ file
var doc = app.documents[0];
var myFolder = activeDocument.path;
var assets = doc.assets;
var whatToExport = new ExportForScreensItemToExport();
whatToExport.artboards = '1-2';
whatToExport.document = true;
var jpegParam = new ExportForScreensOptionsJPEG();
jpegParam.compressionMethod = JPEGCompressionMethodType.PROGRESSIVE;
jpegParam.progressiveScan = 4;
jpegParam.antiAliasing = AntiAliasingMethod.None;
jpegParam.embedICCProfile = true;
jpegParam.scaleType = ExportForScreensScaleType.SCALEBYWIDTH;
jpegParam.scaleTypeValue = 400;
path = new File(myFolder + "/" + "_thumbs" + ".jpg");
doc.exportForScreens(path, ExportForScreensType.SE_JPEG100, jpegParam, whatToExport, "JPEG100_");
Thanks in advance!
Regards,
Mike
