How to select multiple pathPoints?
Hello, i'm getting conflicting answers for wether its possible to select pathPoints at all, but could anyone please describe how to select multiple pathPoints?, if its possible. I've had some...
View ArticleSelect an object in illustrator using extendscript
I have a drawn rectangle on an illustrator document. In the layers menu I have given it a specific path name (outerBox). I would like to select this item and return its particular properties eg height,...
View ArticleErrors and more, my first illustrator script
First, I should mention that I started scripting for Photoshop about a month ago and have had some really motivating successes there. It led me to this one task we have that is just incredibly...
View ArticleHow to select multiple pathPoints?
Hello, i'm getting conflicting answers for wether its possible to select pathPoints at all, but could anyone please describe how to select multiple pathPoints?, if its possible. I've had some...
View ArticleCreate a file selection dialog
I've recently finished a script that does all sorts of things based on a folder selected by the user. One of the first things it does is open a specific file, which isn't a problem at all, I just told...
View Articlealert to display two pieces of information simultaneously
I need an alert to display a message and also a placed item name the placed item name is placedItems[0].file.name and I want the alert to say, "Make note of the file with an error, this file will not...
View ArticleHow to automate the flatten transparency in illustrator?
How to automate the "Flatten Transparency option" in illustrator via javascript. Please share with me. Thanks
View ArticleCan anyone help with with this dialog?
I have put together a dialog but I'm not sure how to get it working properly... 1) I want the checkbox to disable the last 3 fields and make their value be the same as the first field.2) have the...
View ArticleAnything similar to javascript's setInterval in ExtendScript?
I need a way to poll my server for new jobs for the illustrator script to work on every few hours.I tried with $.sleep(), but that is blocking, I need a non-blocking way to do this.Any advice?...
View ArticleRepeat for each artboard problem
I have a script that make makes guides around the edge of the artboard. It works fine when you only have one artboard but has issues when there are more. Can anyone see what's wrong here? #target...
View ArticlePlace 2 objects into a new layer and rename that layer
Hi All Have a little problem and need your help:- I have an ai with hundreds of objects in it. All in one layer.- There are two types of objects: blocks and textlayers (numbers). So each block has a...
View ArticleGlyphs and converting strings to superscript
My goal is to convert a string to a superscript number in Illustrator. Is this possible? I haven't been able to find anything about working with glyphs online.
View ArticleRun a script on file open?
I realize there is a way to run scripts when AI launches, but is there a way to run a script when AI opens a file?
View ArticleMake sizes more accurate?
This script should make a rectangle the same size as the artboard. However if the artboard is 210mm wide the rectangle ends up being 210.002mm, is there any way to make this more precise? #target...
View ArticleFind Baseline position
How can I find the vertical position of the baseline on the last row of text in an area text box?
View ArticleHow to select the outermost pathPoints in Compound or Grouped pathItems?
Hello Hiroyuki, Carlos and AISComm., i have an number of paths in a group each filled with single colors. 3) I hoped there is a way to select the outermost pathPoints on the perimeter of the group? The...
View ArticleAdd Margins in Illustrator
I have made this little script to quickly add margins to an illustrator document and am posting it here to anyone that might find this helpful. The script will bring up a dialog where you can enter the...
View Articleif typename question
Sorry if this is a silly question, but can anyone let me know why the if/else code below doesn't work? The script is supposed to determine which out of two selected objects is a text frame and give it...
View Articleerror 21 converting FH files
I am trying to run the script that Adobe released time ago for converting FH files into AI files (CS4).I am told it used to work perfectly well but now I can't get it to function!!! All I get is the "...
View ArticleComparing strings
var sel = app.activeDocument.selection; for (i = 0; i < sel.characters.length; i++ ){ var character = sel.characters[i]; alert(character) if(character ==...
View Article