assign text through java script
Hello All, This question might have been asked earlier but i couldnt find a clear cut answer to this. So here goes. i am trying to localise an image across different languages and though it was best to...
View ArticleHow do I get the position of the selected PathItem in pixels ?
Hi, I have a simple problem, but can't seem to find my way around it: I have PathItem and Illustrator points out that it is at position (781px,250px).How can I get those values in jsx ? I've noticed...
View ArticleExtracting data from Excel To Illustrator javascript or vbscript
Hi all-I was wondering if there was a way to extract data from Excel to be used in Illustrator. I know there is an option of variables and xml, and I don't want that. I've seen and tried out how to...
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 ArticleMove paths to another layer VB-script
Hello.This is my first post on this forum. I need help with making a script that selects all the paths in a document that has a certain line width, for example 3 pt, and move them to a specific...
View ArticleIllustrator Timestamp
Is it possible to create a script for Illustrator that would "timestamp" the file when edits/changes have been made?
View ArticleExtract text from illustrator for translation then replace with translated text
I am trying to find a way to expedite translations of our drawings. Each drawing has a series of callouts showing what that piece of the drawing is via text. I would need to do 100's of drawings for...
View ArticleNew to Illustrator scripting, looking to make a Compound Path from Existing...
I am wondering how to select existing paths (normal paths and compound paths) and make a new compound path. Google does nothing for me on this.... I have begun to understand the basics of targeting...
View ArticleHow to save illustrator file without save as dialog ?
I' trying to save a file using app.activeDocument.saveAs(savepath); and i am doing it in a loop on multiple files, but every time it will just show save as window and i have to do it manually. Any...
View ArticleGroup from selection
Hi I want to align all the contents to the artboards top-left position and resize it to the artboards width and height.if i use this activeDocument.selectObjectsOnActiveArtboard(); for (var i = 0; i...
View ArticleLooking for "Replace with Symbol" script
So I am trying to replace gps points with a symbol I have created. I have found blogs referencing a script that can replace selected items with symbols saved in the symbols panel, but I can't seem to...
View ArticlePossible to round font size if in decimal with AppleScript?
Hi, Is it possible to automate the rounding of font sizes if they are in decimal form? I have a few thousand files I have to prepare for upload and they can't have font sizes such as 8.214 which...
View Article"width" and "height" attributes not included on svg export
Hello, When exporting svg files through scripting, Illustrator CC includes the viewBox attribute in the <svg> tag – but not width and height. This makes display inconsistent and problematic in...
View ArticleDuplicate a layer with a new Name
I am writing a script that duplicates all layers in a document, but adds a new name (In this case, it's the original layer name with the words Hat at the end of it). My script is pasted below and works...
View ArticleProperties property example javascript in Adobe introduction to scripting...
I'm completely new to scripting so I figured I'd start with the Adobe guide to scripting pdf.On page 18 it gives examples of 3 ways to use properties. The first 2 work just fine, but the third just...
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 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 ArticleSorting Layers
I have a map of the US that is broken down into counties. Each state has its own layer and the counties are sublayers. I am currently going through and naming all of the counties, but I need to be...
View Articleembed all fonts in eps
I have a lot of existing eps-files of which the option "embed all fonts" is unchecked.Know I have to check the "embed all fonts" in the existing eps-files.I tried to modify the script below, but it...
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 Article