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

Read .txt file and input into textFrames

Couldn't find a script to read txt file and input the info into textFrames in the document. wrote this simple script  Hope any1 finds this useful

View Article


Is there a script to "Package" more that 1 file at a time?

I am trying to find a way to Batch Processing groups of Illustrator files (version Mac CC 14) into Packages (separate folders with links). The new "packaged" folders in a new location then need to be...

View Article


Accessing the elements of a page item

Good people of the Adobe forums, I am working on a script that performs a series of things on all of the artwork in a document.  At one point, it needs to compare the fill color of every item to a...

View Article

Set unit preferences (Javascript)

I can't find a way to set the unit preferences for Illustrator CS6/CC using JavaScript. I found that this works (setting units for stroke):var units = 2; // 0-inches, 1-milllimeters, 2-points...

View Article

Automate Loading of Transparency Flattener Preset

For a project I'm working on we need for our users to have a particular transparency flattener preset loaded. I'm not finding a way to load it ahead of time. I can verify if it's loaded, which is...

View Article


Retrieve paragraph direction from ME edition of Illustrator using javascript

Hi, I have the ME edition of Illustrator CC installed.When i open an Arabic illustrator document i can see the 'Left-to-right Paragraph Direction' and 'Right-to-left Paragraph Direction' button.Also...

View Article

[JS] Load custom Transparency Flattener before exporting to EPS

Hello, I'm trying to change the flattener for EPS export:- I found the option for PDF saving but when trying to add the same field to EPSSaveOptions is does nothing (I had little hope on this one but...

View Article

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


adding text to a text frame?

Okay, I have yet another question. I can see the text in a text frame with a script like this,  var doc = app.activeDocument;var myTextFrames = doc.textFrames[0];var myTF_Content =...

View Article


A Zoom_to script

With a lot of help from Jongware, here's a little script to change the view zoom level for an AI document window. //////////// var ZF = prompt ("Enter the zoom factor you wish to use, 1.00 = 100%",...

View Article

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

How do I flatten the layers in an illustrator document using extendscript

The nearest I can find is   activeDocument.mergeVisibleLayers();   But this doesn't work in illustrator CS5 Thanks

View Article

Hey guys, I am new to javascript and I am trying to figure out how to add two...

Here's what I have so far. var docRef = app.activeDocument; if (docRef.swatches.getByName ("CutContour") === 'undefined') { var spotNameCC = "CutContour";                 var cmykColor = new...

View Article


Image may be NSFW.
Clik here to view.

Script for adding layer name to artboard as text

I've found scripts that are sort of close but not quite this.  I have 1 artboard and many layers (see image).   Does anyone have a script that will take the name of the layer, ie "01_Intro" and create...

View Article

Undefined PDF Presets in Illustrator CS5

I'm encountering a problem when attempting to retrieve a list of PDF preset names in both AppleScript and JavaScript. Here are the steps I'm performing: 1) Launch Illustrator 2) Run the following...

View Article


Script for making an object the artboard size.

I am looking for some help on trying to make an object the exact size of the artboard.  This is something I do on a daily basis for several different reasons and it would be very helpful if this can...

View Article

How to divide all textFrames in one-character-per-textFrame?

Hello: How to divide all textFrames in one-character-per-textFrame? Example: the textFrame "Letters" will be divided in 7 textFrames: "L", "e", "t", "t", "e", "r", "s". Help, please.

View Article


Image may be NSFW.
Clik here to view.

Can I make starting point same to every version of Illustrator?

Hi. I made a simple script.   var docRef = activeDocument; var X = 0; var Y = 0; var rect = docRef.pathItems.rectangle(X, Y, 10, 10);  And, It makes different result between CS3 and CS5.(See below...

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

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


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