selecting raster images using a script.
Copy link to clipboard
Copied
I would like to automate an action set that selects a raster image (linked file) that has been grouped with vector art and then converts that selected raster image into a vector (live trace)
I'm using cs5 on a mac. As far as format goes I have hundreds of eps files that all have at least one raster bitmap tif which was imported as a linked file and then grouped with vector art. So I will like to run a batch script command that will select only that bitmap raster image (because I want to maintain the present vector art in the file) and convert that bitmapt tif to vector- and save the file which will hopfully be in vector format.
Please help!
Explore related tutorials & articles
Copy link to clipboard
Copied
this script selects all linked images in the current document
var idoc = app.activeDocument;
var imgs = idoc.placedItems;
for (i=0; i<imgs.length; i++)
imgs.selected = true;
Copy link to clipboard
Copied
There is NO need to select objects using script… You just make target/reference of the object instead… Selecting is just a GUI thing. Both placedItems & rasterItems have trace() methods… so you just need to loop until non are left… You would need to provide more info but this is all scriptable… A pic of the layers palette is always helpful… is all your art in the 1 group at top level or does it nest down…?

