Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

Choose the file page number to insert

$
0
0

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?


Viewing all articles
Browse latest Browse all 12845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>