Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Browsing all 12845 articles
Browse latest View live

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 Article


How 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 Article


Image may be NSFW.
Clik here to view.

Extracting 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 Article

Move 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 Article


Illustrator Timestamp

Is it possible to create a script for Illustrator that would "timestamp" the file when edits/changes have been made?

View Article

Extract 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 Article

New 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 Article


How 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 Article


Group 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 Article

Looking 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 Article

Possible 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 Article


Duplicate 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 Article

Properties 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 Article


Anything 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 Article

Batch 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 Article


Sorting 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 Article

embed 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 Article

Image may be NSFW.
Clik here to view.

Cutting 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
Browsing all 12845 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>