Copy link to clipboard
Copied
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 name | Document Name | Suffix | Extension |
|---|---|---|---|
| Artwork | Artboard 1 | .ai | |
| Press | Artboard 1 | ||
| Proof | Artboard 1 | LR | |
| Tiff | Artboard 1 | .tiff |
Is there something within Illustrator that allows me to automate this, that I've overlooked?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Willing to do the scripting myself if needed, would be good to have a starting point.
Copy link to clipboard
Copied
Then try over at Illustrator Scripting. Check the forums home for access.
Copy link to clipboard
Copied
Hi Daniel,
Greeting from Adobe,
Scripting support for export for screen is available, please refer guides from following article
Copy link to clipboard
Copied
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_");
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
were the export for screens functions added to the scripting reference for CC 2018? has this been published anywhere?
Copy link to clipboard
Copied
i found this page, hope this is helpful to you What's New in Illustrator Scripting CC2018
Copy link to clipboard
Copied
aha, good old Carlos. so yes, access to export for screen was introduced with the most recent version.
Copy link to clipboard
Copied
They need to update their docs. How does Carlos come by this info?
Copy link to clipboard
Copied
@hitsharm21091 I had tried to execute the sample code provided by you in illustrator CC 2017. But it throws an error.
Copy link to clipboard
Copied
Why are you pointing to guides and then come with code which not in any oftheir outdated documentation?
The parts for saveforscreen is not in any of the PDF files. Those date back to cc 2017 and are written in 2016?!?!
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more