How to export multiple artboards to .tiff
I am new to javascript and scripting and I'm looking for help to put together a script. I need this script to export multiple artboards to .tiff the the artboard name included in the saved file name. I know there are the properties artboardRange and saveMultipleArtboards, but how do you set it up to get the artboard name to reflect in saved file name? I pulled this code from the adobe scripting reference.
function exportFileToPSD (dest) {
if ( app.documents.length > 0 ) {
var exportOptions = new ExportOptionsTIFF();
var type = ExportType.TIFF;
var fileSpec = new File(dest);
exportOptions.resolution = 150;
exportOptions.byteOrder = TIFFByteOrder.IBMPC;
exportOptions.antiAliasing = true;
exportOptions.IZWCompression = false;
exportOptions.saveMultipleArtboards = true;
exportOptions.artboardRange = "1-2,7";
app.activeDocument.exportFile( fileSpec, type, exportOptions );
}
}
