New answers tagged

1

Embed is one of the commands you can't execute with an action (perhaps someone else can explain specifically why, I'm not sure). You can do this with a really short script, here's an example of the code: #target Illustrator if ( app.documents.length > 0 ) { while ( app.activeDocument.placedItems.length > 0 ) { placedArt = ...


-2

(Illustrator) To play a set of actions, select the set name, and click the Play button in the Actions panel, or choose Play from the panel menu. To play an entire single action, select the action name, and click the Play button in the Actions panel, or choose Play from the panel menu. If you assigned a key combination to the action, press that combination ...


3

here's a sample showing how to loop thru the Datasets var idoc = app.activeDocument; var ds = idoc.dataSets; var activeds = idoc.activeDataSet; // save the current dataset for (i=0; i<ds.length; i++) { ds[i].display(); // this is the same as clicking the dataset arrows in the UI app.redraw(); // we don't need to redraw, it's here so you can ...


2

For every pageItem do: activeDocument.pageItems.removeAll(); This does not include swatches, symbols and other such persistent thing. As a alternative make a new document and close the old one. activeDocument.close(SaveOptions.DONOTSAVECHANGES); app.documents.add();


2

You need to open the Info panel. Go Window > Info. You'll find the X and Y coordinates for your cursor are shown when nothing is selected. If you select an anchor point, the X and Y coordinates for it are shown instead.


1

The rectangle method of pathItems takes the parameters (top,left,width,height) so all you need to do is offset those values accordingly. Illustrator works exclusively with points so you need to convert the value from mm to points. 2.834645 points = 1 millimeter so... 15mm = 42.52point (rounded to 2 decimal places) This should work: var ipath = ...


0

Indeed, CSV and tab-delimited .txt import is possible with this script! https://raw.githubusercontent.com/Silly-V/Adobe-Illustrator/master/Variable%20Importer/VariableImporter.jsx This script can bind variables by name or note, and there's another script in the repo called "Rename Art from Text" which can help auto-name your text frames. The ...



Top 50 recent answers are included