Help......Change Document Size
How to change (Illustrator)Document Size. As Old Document Size Width:400Height:600 I would like to change Width:450 Height:650Similar features Menu-->File-->Document setup....
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 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 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 ArticleMove layers to new artboard
Hi everybody, I'm trying to create a script via javascript for Illustrator. My problem is : I have a AI file with multiple layers, i want to create one artboard per layer, in order to export a...
View ArticleMail merge using illustrator
Hi There, I'm trying to find a way to automatically populate data into Illustrator and InDesign. I was thinking of doing it using Applescript and importing an excel file into an illustrator graph...
View ArticleScripting Illustrator actions, incorporating calls to Excel
Hello all, I need some help... I am building a series of logos — based on word strings — using Illustrator CS4 with a combination of Actions, but also retrieving the word string from an Excel file....
View ArticleGetting insertionPoints properties
I am trying to find the line that the insertion point is on. I've tried several different combinations of this except the right one, can anyone help me out?...
View ArticleScript to set reference point
I need a script to set transform reference point at desired position without clicking in these tiny squares in the selectors, both in control panel or transform palette.I will bind these scripts to...
View ArticleScript: rename layers?
Hi, is there a quick way how to renumber or batch rename all layers in a file so they would be named in consequent numbers? Doesn't have to start from exact number, I was wondering if maybe there is...
View Article[JS] CS6+ executeMenuCommand
Hello together, since CS6+ there is possible to executeMenuCommand (menuCommandString: string)Executes a menu command using the menu shortcut string. Question 1:Who knows a way to read all the...
View ArticleHow to save as AI file with PDF compatability at the same location?
Hi Guys, Requesting for script. Here are the details.. I do have lot of AI files (from different paths) which are do not have PDF compatability switch on. So now I am looking for script that all the...
View ArticleExportType.SVG "Use Artboards" option
I am trying to export layers to SVG, but I need to access the "Use Artboards" option in my ExportType.SVG options. I do not see it in the Javascript reference:...
View ArticleScript taking far too long to execute
var sel = app.activeDocument.selection; for (i = 0; i < sel.characters.length; i++ ){ var aChar = sel.characters[i]; if(aChar.contents =="~") {...
View ArticleA Script to Find and Replace Layer Names
Are there any scripts to find and replace layer names? There is an excellent script available for Photoshop which allows you to not only replace words in layer names, but also insert words as Prefixes,...
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 ArticleSaving documents via Scripts: Get current file name and set save path/file type
I am writing a script that will: -Make all layers invisible-Make a layer named "background" visible-Delete all the invisible layers-Save the docment as an EPS file (leaving the original document...
View Articleillustrator Spiral Shrinking/Growin text, scaling down/up on spiral path
First of all thanks in advance for anyone who may assist, or make this even possible...... (please contanct me ADAM razo.ad1985 --->G.mail) In dire need of expertise assistante. Years ago I...
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 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 Article