Skip to main content
daniel_alexan80
Participant
October 21, 2017
Question

Export for screens - Exporting multiple documents

  • October 21, 2017
  • 3 replies
  • 3903 views

What I'm trying to do is save time when I'm saving files. I can't find an appropriate solution for my use case. The "export for screens" interface seems to be the closest solution, but the problem is that it doesn't allow to save the document types that I need.

What I want is to be able, at the end of each project, or even during if possible, to have multiple documents exported to multiple folders, with their assigned suffixes.

For example,

Folder nameDocument NameSuffixExtension
ArtworkArtboard 1.ai
PressArtboard 1.pdf
ProofArtboard 1LR.pdf
TiffArtboard 1.tiff

Is there something within Illustrator that allows me to automate this, that I've overlooked?

This topic has been closed for replies.

3 replies

hitsharm21091
Adobe Employee
Adobe Employee
November 2, 2017

Hi Daniel,

Greeting from Adobe,

Scripting support for export for screen is available, please refer guides from following article

Illustrator Scripting | Adobe Developer Connection

hitsharm21091
Adobe Employee
Adobe Employee
November 2, 2017

refer below code for sample script,

var doc = app.documents[0];

var assets = doc.assets; 

var whatToExport = new ExportForScreensItemToExport();

whatToExport.artboards = '20-59';

whatToExport.document = true;

var jpegParam = new ExportForScreensOptionsJPEG();

jpegParam.compressionMethod = JPEGCompressionMethodType.PROGRESSIVE;

jpegParam.progressiveScan = 4;

jpegParam.antiAliasing = AntiAliasingMethod.None;

jpegParam.embedICCProfile = true;

jpegParam.scaleType = ExportForScreensScaleType.SCALEBYFACTOR;

jpegParam.scaleTypeValue = 3;

var path=new File(InitialFolderPath);

doc.exportForScreens(path, ExportForScreensType.SE_JPEG80,  jpegParam, whatToExport, "JPEG80_");

sais49882722
Participant
November 14, 2017

In the Illustrator Scripting link you provide no such internal functions are provide like "ExportForScreensItemToExport()" without that we are unable to know its properties right? so, please can you guide us where we can find these function to build some custom scripts

daniel_alexan80
Participant
November 1, 2017

Willing to do the scripting myself if needed, would be good to have a starting point.

Larry G. Schneider
Community Expert
Community Expert
November 1, 2017

Then try over at Illustrator Scripting. Check the forums home for access.

Monika Gause
Community Expert
Community Expert
October 21, 2017

You will need at least scripting to do this, if not a plugin.

Maybe someone knows if this already exists somewhere, but if not: Contract a developer to make this for you.