Place 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 Articleexecute photoshop script via illustrator cs5
Hi Is it possible to execute Photoshop script via illustratorI have 2 different script script 1 work in illustrator with eps file and export as jpeg script 2 where i want to trim the exported jpeg for...
View ArticleSave as FXG option not working from script. Am I doing this right?
I see that the Illustrator Scripting reference document for CC 2014 [1] has references to FXG, FXGSaveOptions, etc. I thought I would give it a try to see if I can save a document to FXG. Here is...
View ArticleScript 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 Articlehow to clear clipboard
As the title says, how do i clear the clipboard while scripting with copy/paste functions? Because i am affraid for crashes because too much items are on the copy buffer Thanks.
View ArticleEditing the leading on a created textFrame
Hi, I have no idea why the following code will not work.The text displays in the correct place with the correct contents but i cannot get the leading to change. var textInfo =...
View ArticleHow to assign values to an artboard and save them within the document?
Is there any chance to assign values to an artboard? I've experimented with “tags”, but they only work for pageItems. (if the item which includes the stored data is deleted, the data is also deleted)...
View ArticleResize artboard to content - works in Mac (CS6), not Win (CC)
Hello!This code works perfectly in Illustrator CS6 for Mac: function resizeArtboard() { app.redraw(); app.activeDocument.artboards[0].artboardRect =...
View ArticleDocument preset & New document - Illustrator - Applescript
Hi !Here is the problem i would like to resolve with appelscript.I want to make a new file with units (millimeters)I know i need to make a preset before making a new document ; but i don't know how to...
View ArticleHindi numbers
Hi all, I want to switch my number format to hindi, I want to make it using javascript programmatically, is there any javascript sample to do that?thanks.
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 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 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 ArticleTweaking the SaveDocsAsPDF script
Hello. Absolute scripting newbie here; will someone take pity...?I am looking at the SaveDocsAsPDF script. It works for our purposes except I would like it to save PDFs using a Preset we created called...
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 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 a colour with another colour
I have over 100 documents. In these documents, some of the objects use a regular black colour (e.g. C0, M0, Y0, K100). I need to replace it as a rich black (e.g. C75, M68, Y67, K90). The regular black...
View ArticleIllustrator scripting with datasets & variables
I have a .ai file with 3 datasets containing 2 variables each. I am new to adobe scripting and am trying to write a script that will loop through the 3 datasets, swap out the variables, and save as 3...
View Articleimporting data into illustrator with javascript
I would like to open a file dialog box seltect a CSV text file saved from Excel and import this into an array/variable/dataset in adobe illustrator using javascript. Have done some work with javascript...
View ArticleWhy can't set and get KerningMethod in Illustrator?
As Doc of Illustrator:CharacterAttributes: kerningMethodAutoKernType:AutoKernType.NOAUTOKERNAutoKernType.AUTOAutoKernType.OPTICALAutoKernType.METRICSROMANONLYr/wThe automatic kerning method to use.But...
View Article