Skip to main content
Katrina2023
Participant
August 6, 2019
Question

How to export multiple artboards to .tiff

  • August 6, 2019
  • 1 reply
  • 937 views

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 );

    }

}

This topic has been closed for replies.

1 reply

renél80416020
Inspiring
August 6, 2019

Salut!

Tu veux enregistrer un fichier par plan de travail (artboard) ?

Exemple, pour toto.ai et artboard names (un, deux, trois)

toto un.tif

toto deux.tif

toto trois.tif