How 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 ArticleCutting a circle
Hi all, I need to make shapes like this based on a value for graph purposes - usually I would just create a cutting shape based on trig (this shape representing around 60%) and subtract it from the...
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 ArticleMove sub layer to own layer
Hi all Is there a way to move an object (number) out of it's layer? See example below:1) Current situation (the layers are closed by default):2) Needs to look like this: There are more than 500 layers,...
View ArticleChange font in Illustrator cs4 js
I need to assign specific font to my text and it doesn't work. What am I doing wrong: var my_OUTSIDE_TextFrame = myInstrLayer.textFrames.add(); my_OUTSIDE_TextFrame.geometricBounds = ["1.6 in", "1...
View ArticleBatch replace color without using swatch as source
I've searched these forums and the rest of the web trying to find a method to do this... Actions don't cut it (if Actions were able to record the "replace color" dialoge it would be fine) so I've...
View ArticleIllustrator Macros/Scripting
Hey guys is it possible to create macros in illustrator, or how would this be achieved via the scripting.Basically i have a c# application that contains alot of pictureboxes all with images in them. i...
View ArticleDialog in Illustrator CS4 js
Hi, I have dialog script that I am using in InDesign to choose a pdf file to place into the document and I need exactly the same script in Illustrator, but I have a hard time to translate it into...
View ArticleBreak text area into text lines
I want to break text area with line breaks in it into seperate text lines using return as delineator. for example "Line 1Line 2Line 3" I would like as "Line 1""Line 2" "Line 3" I could probably write...
View Article[AS, CC 2014] window bounds
Is there a way in Illustrator CC 2014 to change bounds of the current window?I tried the bounds of current view property but it's "read only". Any clue?
View ArticleDefault color swatch and scripting
Hello everyone.I need to integrate something in my workflow.I generate a lot of rather simple different documents every day. Mainly logos. I need to automaticfally add some color references on the...
View ArticleCustom scripts not working in Illustrator CC (2014)
A couple of custom scripts that are part of my workflow don't work in the new CC; MultiExporter.jsx and Sprite CSS Generator.jsx.When I try to run either a titled modal window comes up as if the script...
View ArticleIs there a way to get string in *ai file without Illustrator?
Hi. I have a question. 1. Type 'hello' in Illustrator document and save.2. open file to text editter.3. find 'hello' in text editter.4. text editter alert "Cannot find 'hello'" Is there a way to get...
View ArticleReworking Photoshop layer renaming script for Illustrator
The Photoshop scripting guru Paul R over at RetouchPro has created a really cool script to batch rename and number selected Photoshop layers. I haven't found anything similar on the Illustrator side....
View ArticleAssigning random colors from a defined color palette.
I'm using a mac running illustrator cs5 and have about 4 thousand eps files (all vector paths filled with black) that need to be assigned colors randomly from a defined color palette (25 custom...
View ArticleIs it possible in Extendscript/Javascript to 'Outline Stroke' a path
I'm trying to achieve the same command as enacted by Object > Path > Outline Stroke. I can't find any reference to a method for this in the Javascript reference PDF, and you can't trigger menu...
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 Articlebizarre Array issue absolutely doing my head in
hi People I'm writing a script to replace text numbers with some simple path numbers (for laser engraving).I've set up an array of points for each replacement number path and all was going great but...
View ArticleIllustrator script to open file in Photoshop
The Bridge SDK has a script to open a selected file in Photoshop.Can this be done from Illustrator instead? It seems that the cross-dom function open() should work in either an illustrator or bridge...
View ArticleCalling functions from UI palette
Hello,From what I understand, you can't call complex functions from a scripted UI palette, only from "dialog" windows (which are usless in my case) because I need the persistance of a palette. I have...
View Article