Hi, I have this script:
#target illustrator
var FilePath = "~ / Desktop / TEST FILE VARIABLE ESKO.ai"
createRasterItem (FilePath)
// Creates a new raster item in a new document from a raster file
// JpgFilePath contains the full path and file name of the jpg file
createRasterItem function (FilePath) {
var = rasterfile File (FilePath);
myDoc app.documents.add = var ();
myPlacedItem myDoc.placedItems.add var = ();
myPlacedItem.file = rasterfile;
myPlacedItem.position = Array (0, myDoc.height);
}
But when I have a file containing more than one page, I would select the second page, does anyone know how to do this?