Access XML_ID of pageItem/groupItem
Is it possible to access the XML_ID of a pageItem or groupItem via ExtendScript? For example a layer name may be 'Active' but it's XML_ID (as viewed when setting Preferences > Identify Object By...
View ArticleHow do I copy active artboard from Illustrator to Photoshop?
Hi, I need to copy the active artboard from Illustrator to Photoshop. Can this be accomplished? I got a handle to active artboard like this //get artboard collectionvar myArtboards =...
View ArticleLink to a web page from AI javascript?
I've written a script with a ScriptUI interface, which other people will be using. I'd like to include a 'help' button in the interface, which ideally would connect to a web page with more details....
View ArticleJavaScript to prompt user to save as PDF
I am making changes with code to the file. I want the user to be prompted to save as a .ai file first. I have that down. Now I am wanting to have the user immediately be prompted to save as a pdf with...
View ArticleIs it possible to run an action with a script using cs6 javascript
In the pdf for the scripting guide it says : "A script can execute an action, but actions cannot execute scripts." I am having trouble finding out how to do that, and I know a way to have an action...
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 ArticleExporting an .ai file to a bitmap file
In Illustrator Scripting (VBscripting), how can you export an ai file to a bitmap file? In Illustrator you can open an ai file and by selecting the Export option you have a choice of formats and one of...
View Articleopen webpage
Hi guys, I was wondering if it's possible to open webpage with script: WIN: system.callSystem("cmd /c \"explorer http://www.google.com");MAC: system.callSystem("open http://www.google.com"); It's...
View ArticleScript to round fractional CMYK colours?
This script must exist but I'll be damned if I can find it!!! I work in a large printing company and we get artwork from all over that has dodgy CMYK colours (quick convertions from RGB obviously). We...
View ArticleAi Packaging Script
Ok.. I'm sure this has been posted before (already searched, didn't find however), but does a file packaging script exist for AI? (one that collects all linked images and fonts and places them in one...
View ArticleImagetrace Script / doesn't recognize options / wtf preset number
Hello, I'm totally desperate because I need to get an imagetracing script to work and it somehow just won't. Here's the deal. I need to adjust the options for the trace command. There are 2 ways I can...
View Articlelaunch illustrator with script from commandline
Hi,(Illustrator CC 2014 on Windows 7) I had hotkeys defined using AutoHotkey to execute a script in illustrator by executing a commandline, and with the script as an argument. This used to work fine,...
View ArticleAdvanced "Save as PDF" script that saves 2 PDF presets with 2 different names.
Hi Everyone, I am looking to improve a save as pdf workflow and was hoping to get some direction. Here is the background... I routinely have to save numerous files as 2 separate PDFs with different...
View ArticleIgnore Empty Artboards?
I am using a slightly modified version of this script to export icons.http://www.ericson.net/content/2011/06/export-illustrator-layers-andor-artboards-as-pngs-a nd-pdfs/ Say I have a document with...
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 ArticleBatch combine files into one illustrator document - how to open target document?
I am making a script which will: 1) Open a folder of Illustrator files2) Open each file in the folder (these files are called the source files)3) Select all the contents of the source file4) Copy the...
View ArticleHow to "Place as linked file" (not "import") a multipage PDF file on a single...
ILLUSTRATOR CS4 Hello, I often use the import multiPDF script from Carlos Santo and it works great.But i sometimes get multipage PDFs from customers only with text, and the fonts are so rarely...
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 ArticleMove corresponding text and overlapping graphics
OK so I have a JavaScript in CS4 that I wrote that will take selected text objects and create a layer formatted the way I need it.For example the following text items are selected:13 16 23 FFThe...
View ArticleChangeSizesOfTextSelection.js
Illustrator version 10 installed with a sample script named ChangeSizesOfTextSelection.js. The script gradually changes the size of text. The way it works is, you type some text in Illustrator, select...
View Article