How do I get rid of this invisible box?
When I use the "direct selection tool" (not the regular selection tool) to select the image, this box randomly shows up around it... It is making the script I wrote freak out. Basically, what I need to...
View ArticleA list of Illustrator menu commands we can call from JavaScript.
app.executeMenuCommand(StringFromListBelow); actualsizeAdd Anchor Points2AddArrowHeads2Adjust Colors DialogAdjust3Adobe Action PaletteAdobe Actions BatchAdobe AI Device centerAdobe AI Save For...
View Articleexport multiple pairs to ai
Hi!, is it posible export two layers to ai format? Could you help me please ?all layers are in the same artboard, the layers have hidden layers and lock layers.I am sorry for my bad english 001 cmyk.ai
View ArticleHow do I copy the path name from the layers panel to the center of the...
For Instance, I have a map of the United States. Each state is a path and has been named in the Layers Panel. I now want to generate the state name from the layers panel so it is automatically...
View ArticleInsert "Play action" in Actions Panel
Hi guys... I found some actions (.aia) but I saw someoneinserted a new action to play another action. It seems like using "doScript" but I don´t know how to add "Play action"in "Actions panel" to play...
View ArticleApplecript or Javascript to load action set
having trouble trying to load an action and run it via scripting.I keep getting illegal argument. tellapplication "Adobe Illustrator" activate load actionfile "path/to/action/file/actionSet1.aia"...
View ArticleAdobe Illustrator Tags
I have noticed the tags object is available to the document object, the pageitem object. Does anybody use these, and is there an example of using the 'tag' which someone would be willing to share for...
View ArticleApply overprint only to black objects & texts
Hi, I am trying to write a script that apply Overprinting attribute to all objects & texts on all layers only to K=100. I start from unlocking layers... var doc = app.activeDocument; for (i=0;...
View ArticleRenaming EPS files
Hi people!I was trying to rename a few EPS files using this code but it didn't work. var myEPS = Folder.desktop + '/AF Files/oldName.eps'; myEPS.rename( Folder.desktop + '/AF Files/newName.eps'); I...
View ArticleAnother frustrating printing question
So one thing I just realized is that your print options do not go through until you use the print() method. This is very frustrating because I do not know what kind of Inks are being printed for the...
View ArticleHow do I batch-rename objects/paths (not just layers)?
Question from a complete n00b: I need to rename a large number of selected objects/paths. This is because I want to use another script that only works when my objects have the default name,...
View ArticleConvert 'almost smooth' and 'actually sharp' points to real ones
Sometimes in my work I see points-liars of two kinds:1. Point which seems to be smooth — the angle between it's handles is very close to 180 degrees — but actually it is not. I guess there could be a...
View ArticleHow to expand a dashed line using an extendscript?
In Illustrator, there is a very useful function Object > Expand which allow to use the eraser tool on a dashed line without shifting dashes everytime the line is cut. I want to do the same job than...
View ArticleIs it possible to Close All without Saving?
Of course I can do Control-Alt-W (WINDOWS) to close all but the pop-up Save? dialog interrupts my rhythm and I need a script that allows me to Close All -> No Save. I have tried an Action where I...
View ArticleSnap every point to grid
Sometimes I need every point of my working path to be snapped to document grid.Right now I have do it manually — cycle every point and type new rounded coordinates or turn on snapping to grid and drag...
View ArticleGetting the File Name from an Embedded Link
Hi All, I'm using the below code to get the raster item (file name) for the embedded links in an artboard.But I am facing the below issues.1) if any link is missing then the script is not running2) if...
View ArticleStop playing action from JavaScript
Hi everyone_ I have a JavaScript code to create a new personalized documentbut if the active document hasn't been saved yet, this script don'tcreate the new document BUT STOPS the other actions.Now, Is...
View ArticleOpen multi-page PDF in Illustrator
Does anyone know of a script that would allow Illustrator CS4 to open all pages of a PDF, instead of opening one page of the PDF at a time?
View ArticleAnti-aliasing Type Optimized/Art Optimized on PNG export
Hello there, I'm modifying a javascript that makes an export of each layer contained in an Illustrator document and I want to specify the method used for anti-aliasing (either Type Optimized or Art...
View ArticleSelecting objects by fill color
Hi guysIs possible to select objects by color in CMYK using JavaScript?All I want to group several objects with the same fill color. Many thanks for your time... Please see the picture bellow...
View Article