Quantcast
Channel: Adobe Community : Discussion List - Illustrator Scripting
Browsing all 3671 articles
Browse latest View live

How can I get keyboard cursor(caret) position in javascript?

Hi. I have a question. How can I get keyboard cursor(caret) position in javascript? I made a multilined edittext in ScriptUI.  But It's not working about Enter key.  All I want is when I push 'enter'...

View Article


How to resize a textFrame, while also resizing its parent (a groupitem)?

I'm trying to find the smallest textframe within a group and then matching that textframe font size to the minimum size allowed for printing. Everything else works, except I can't figure out how to...

View Article


Move layers to new artboard

Hi everybody, I'm trying to create a script via javascript for Illustrator. My problem is : I have a AI file with multiple layers, i want to create one artboard per layer, in order to export a...

View Article

Image may be NSFW.
Clik here to view.

Sending Excel cell data to specific points in Illustrator in VBA

I want to send the contents of A1 to an Illustrator document at 135, 172 and B1 to 135,190, same with A2/B2 will be at different coordinates as will A3/B3 and so on... I want to do this 6 times and...

View Article

How to duplicate artboard and move it relative to original?

Basically, I have an open AI document and would like to duplicate its artboard and then move it to a new position(X axis, 50pixels away from the original). Doesn't seem too hard, but I can't figure it...

View Article


Possible ExtendScript limitation?

So I'm almost finished my script, but I wanted to add another for loop within a quad-nested loop, but when I test the script, it won't even go through the fifth loop. Is there a limitation in the...

View Article

How to calculate the ExportPNG24 scalefactor

I need to export a Illustrator icon in various different resolutions e.g. 16x16, 64x64, 256x256 etc. I wrote a simple script for this purpose which is calculating the scalefactor out of the image width...

View Article

Split Illustrator file into multiple files

Is it possible to have a script that would split up an Illustrator file that contains a number of groups of elements into individual files... for example, here is a download link for a file that has...

View Article


VB Syntax Help for Pathpoint Anchor

Greetings, Friends! I think that I am about to slap myself silly, as I know that as soon as I am presented the solution, I'll do one of those "Dang - I knew that", but after a few hours of trying, I'm...

View Article


how to add buttons in script, which on click run different codes?

If we run script then it should display 6 button along with ok, cancel button. If we click on button1 then the coding assciated with button1 should execute and so on....

View Article

Change Folder.current to location of script (.jsx) file?

All, I'm trying to use some images in my ScriptUI dialog, but I want to use a "relative" path name, and I can't seem to get it to work.For example, this myScript.jsx works just fine, but as you can...

View Article

Image may be NSFW.
Clik here to view.

Now draw your own ScriptUIGraphics graphics! (1st testing)

Hey everyone, I've made this little system of drawing ScriptUIGraphics from your illustrator document.  Please be advised, the graphics resulting from this are not anti-aliased and look bad at medium...

View Article

replace text

Hello i`m Brasilian, I did this code var sourceDoc = app.activeDocument;var sourceName =sourceDoc.name;  var myLayer = sourceDoc.activeLayer;  var myTextFrame =...

View Article


Why won't my script work on all files in the folder?

Hi, below is a script I hobbled together from various sources using the search function on this forum. It is supposed to change hyphens to en-dashes in a ai files in a folder. However, when I run it,...

View Article

How can I batch a huge bunch of wmf to ai in multiple subfolders?

Hi, I have a couple of thousand old cliparts in .wmf format that I have to convert to .ai.  What I need to do is simply open the .wmf, store it as .ai in exactly the same location.  Actions didn´t work...

View Article


SAVEAS FILE WITH OTHER NAME

HI  I'm trying to create a script to save a file that is already open in the same directory with a different name.  Example: nome_0000_art to nome_0000_closed  I tried to create from another script...

View Article

Illustrator 2.0 scripts no longer work in 5.5

I learned applescript to write this script in 2008, and have no memory of how I did it. Now we've upgraded, as Illustrator 2.0 is not supported by new macbooks, and the script doesn't work in 5.5 (my...

View Article


Excel data to construct illustrator object

Problem:How to read real number data from selected columns in an Excel spreadsheet into an illustrator javascript array variable, so that then I can use this information to construct an illustrator...

View Article

How to access XML elements by name in Extendscript??

I'm almost done the script that I've been working on, but something has been nagging me since I started. When I did start, I looked at the JS Tools Guide CS5 that comes with the extendscript ide to...

View Article

XMLHttpRequest equivalent in Illustrator CS6 JavaScript?

Is there any way to make an XMLHttpRequest equivalent in Illustrator CS6 JavaScript? I'd love to be able to have an Illustrator script make use of returned JSON. Is it possible? For instance, in plain...

View Article
Browsing all 3671 articles
Browse latest View live


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