Script to make multiple layers in one task
From time to time I find the need to make many empty layers named A-Z. I use this when preparing a font drawn in Illustrator for moving to FontLab.I have not found any ready made script to do this and...
View ArticleConvert .ai to .doc
Hi, Can it be possible to convert .ai file into .doc file or any tool which will do this conversion. Thanks,Shail
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 Articlefill color using a script.
I'm trying to create a script in CS5 mac os10.6.8 that will change the fill color of selected pathItems. I need a simple script that will change a selected pathItem to cmyk values 2,3,15,0. I will then...
View ArticleImporting Color to Swatch Library from Text File
Hi,I have a large list of custom colors in Excel that has the color name and CMYK breakdown of each color. I'm looking for a way to import this information to create a custom Color Swatch Library. That...
View Articleresize method with Javascript in Illustrator CS4
var objectBounds = docRef.visibleBounds;var W = objectBounds[2] - objectBounds[0];//figures the widthvar H = objectBounds[1] - objectBounds[3];//figures the height // W & H are reporting the size...
View ArticleCMYK to Spot conversion
I created a script that goes through the path objects one a time, converts the cmyk values over to a spot color, then applies that new swatch to path item. It works when it comes to grabbing the...
View Articlescript to align selected objects to artboard
Hello, I was wondering if anyone had a simple solution to aligning selected items to the artboard. I was going to create an action but then realized it would be more convenient for me to include it in...
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 ArticleHow 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 Articlecreating outlines from text using javascript in Illustrator CS5
Hi everyone, Is there a way to select all of the text on all artboards and CREATE OUTLINES using Javascript? I've googled and googled, but I can't seem to find any help. The text that Adobe provides...
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 ArticleApplescript - return value from 'do Javascript'
I'm running a javascript via Applescript, and I want to return a value back to the calling applescript. When I try the following test: tell application "Adobe Illustrator"set theScript to "return...
View ArticleCopy selection to a new document
Here is a break down of what I am wanting to accomplish....any guidance would be appreciated! 1. User will select items (text frames, compound path items, path items)2. User will run a script that will...
View ArticleConvert RGB to CMYK Illustrator CS4 js
Hi, I need to convert RGB ai file to CMYK mode. I tried: myDoc.documentColorSpace = DocumentColorSpace.CMYK; I realize that it says Read Only, but I couldn't find anything else in OMV. Your help is...
View ArticleHow can I set Illustrator CS5 color settings using Javascript?
I can set Photoshop color settings with the app.colorsettings ('File') in javascript, but I cannot locate an object in Illustrator that would perform the same task. I can only find readonly objects for...
View ArticleRenaming selection with even or odd increments
I currently have an illustrator file that requires me to rename selections of objects. Currently I'm using: var docRef = activeDocument; with (docRef){ var sel = docRef.selection; for (var i=0; i...
View ArticleGiving Opacity the same value as fill color (Inverting Opacity/Fill)
I am looking to add a script that would take the fill value of swatches in my art file, and apply those values to the opacity of each swatch. I would also like to be able to adjust the fill value to...
View ArticleDelete Document using JSX
Hi All, I want to delete an Image File using JSX . I explored the functions in File but there is nothing like Delete(). Please suggest me some code. ThanksHarsh
View Article