file cleanup
Posted: Tue Jun 04, 2019 10:47 pm
i have a flow that runs script in save as : script file property of illustrator flow element.
incoming PDF opens in illustrator
saves out ai file in desired location
closes file that had been opened
but incoming PDF that triggers the open and save as script just sits there.
how do i pass the PDF through to data out folder? thanks
////////////////////////////////
exportFileToAI ("/Volumes/CNC/");
function exportFileToAI (dest)
{
var saveOptions = new IllustratorSaveOptions();
var ai8Doc = new File(dest);
saveOptions.compatibility = Compatibility.ILLUSTRATOR15;
saveOptions.compressed = false;
app.activeDocument.saveAs( ai8Doc, saveOptions );
}
incoming PDF opens in illustrator
saves out ai file in desired location
closes file that had been opened
but incoming PDF that triggers the open and save as script just sits there.
how do i pass the PDF through to data out folder? thanks
////////////////////////////////
exportFileToAI ("/Volumes/CNC/");
function exportFileToAI (dest)
{
var saveOptions = new IllustratorSaveOptions();
var ai8Doc = new File(dest);
saveOptions.compatibility = Compatibility.ILLUSTRATOR15;
saveOptions.compressed = false;
app.activeDocument.saveAs( ai8Doc, saveOptions );
}