Exporting an .ai file to a bitmap file
In Illustrator Scripting (VBscripting), how can you export an ai file to a bitmap file? In Illustrator you can open an ai file and by selecting the Export option you have a choice of formats and one of...
View ArticlePlacing registration marks on the corners of document
I have to process a lot of files to be router trimmed which requires them to have very specific registration marks. There are 2 different marks we have to use. The first mark is at the top left...
View ArticleCalling functions from UI palette
Hello,From what I understand, you can't call complex functions from a scripted UI palette, only from "dialog" windows (which are usless in my case) because I need the persistance of a palette. I have...
View ArticleCS6+ executeMenuCommand, pattern swatch
Hi all, I'm trying to create a Pattern Swatch out of the Selected Object, so I'm using app.executeMenuCommand ('Define Pattern Menu Item'); this successfully adds the swatch to the swatches panel, but...
View ArticleCompare pathItem.fillColor to no fill
I am running a simple script that checks a certain layer for any circle that is not colored properly.I have 4 circles and 1 line on my test document. I am checking to see if any items on a specific...
View ArticleScript: rename layers?
Hi, is there a quick way how to renumber or batch rename all layers in a file so they would be named in consequent numbers? Doesn't have to start from exact number, I was wondering if maybe there is...
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 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 ArticleSave All?
This may be a stupid question, but is an existing to Save All open documents? If not, is there a way to script this? I often make a bunch of changes in documents at once and it would save a lot of time...
View ArticleAdvanced "Save as PDF" script that saves 2 PDF presets with 2 different names.
Hi Everyone, I am looking to improve a save as pdf workflow and was hoping to get some direction. Here is the background... I routinely have to save numerous files as 2 separate PDFs with different...
View ArticleIllustrator VBA scripting 101 - via Excel
This post will attempt to introduce newcomers to Illustrator Visual Basic Scripting (well, not actually vbs, but rather tru VBA, Visual Basic for Applications). I personally prefer vba over bvs for a...
View Articleneed script to export text from multiple illustrator files to txt files
Hello. I can do the following manually: open an illustrator file (cs4, pc, windows xp); go to file, export, export text to a file with the same name as the illustration file (with the txt extension)....
View Articletype preview dissappeared
After I updated my Mac to IOS X Yosemite, I opened Illustrator CS5 and my font list no longer displays the fonts available. The type box expanded looks like one big gray rectangle. When I scroll over...
View ArticleHow to create an Empty Playlist File on Mac?
Hello everyone, I'm working on a Music Player script, I was able to play a file via the default player as when we doubleclick on a file. The problem is I have no control over the Player, so to "stop" a...
View ArticleWarning thin lines
I want a warning when a line in my artwork is thinner than 0,2 mm, is there a script for that ? or how can I make that script?
View ArticleJavascript errors started with the new illustrator cc 2014 update
I have been running Javascripts for many things in my daily work flow in illustrator for years now.With the latest update of illustrator cc 2014 I am now getting errors on a regular basis.Has anyone...
View Articleapplying a swatch to a pathitem
I am trying to apply a swatch to all pathItems on a certain layer. I have the code written to access the layer I want but I am not sure how to apply a specific swatch name to the pathItems on the layer...
View ArticleWorking on a script that will add a new artboard and delete the old one if it...
var docRef = app.activeDocument; app.coordinateSystem = CoordinateSystem.ARTBOARDCOORDINATESYSTEM; var ab = docRef.artboards[0]; if ((((ab.artboardRect[2] - ab.artboardRect[0]) / 72) == 17)...
View Articledetect groups in pageitems and cycle through items in each group
Hi, I can use some help with a script I'm working on. The script basically creates a new layer based on an objects fill color and then moves the item to the new layer. What I can't figure out is how to...
View ArticleIllustrator Macros/Scripting
Hey guys is it possible to create macros in illustrator, or how would this be achieved via the scripting.Basically i have a c# application that contains alot of pictureboxes all with images in them. i...
View Article