Your opinion on best practices.
Over the 2 and a half years I've been writing javascript, I've changed my practices time and time again as I've learned new techniques or encountered unforeseen problems with other techniques. At this...
View ArticleRecolor as a Curve Tool
Hello. Im working on recoloring script. I need to script a Curve Tool. There must be a function that do the work.I tried a Phantasm Curve Tool, but it breaks objects into a trash too often. So, I just...
View ArticleHow to apply swatches into document via script?
Every day i have to do this steps many times:1. Window -> Swatches -> Other Libraries -> "Select MySwatches.ai from Computer".2. Then i click on swatches to apply them into swatch list Can u...
View ArticleText frame Transform
Hello everyone, i have a doubt what is use of method translate or transform. suppose i am having a text frame how to move this text frame if is an point type text. 1* star text is located down 1 is...
View ArticlePrint specific artboard (javascript)
Hello, I'm trying to make a small script that loops through a folder, opens each document and prints artboard 3. I figured it was pretty trivial, but it's not Here's the main part of the code. I set...
View ArticleHelp with converting an InDesign script to Illustrator
Hi all, I have this snippet that works in InDesign, but I'm guessing due to the object model won't do anything in Illustrator.This counts how many objects in the document sit on a layer called 'cutter'...
View ArticleArray Find and Replace Script?
I've found a script that will find and replace a term in an Illustrator file perfectly, but I was wondering if someone would be willing to modify the script to allow me to find and replace multiple...
View Articledoes extend script have an egrep equivalent
Hi there, I write most of my scripts in applescript but occasionally have to port them to Javascript. In my current applescript I'm using the do shell script command to invoke the unix egrep command to...
View ArticleLaser Spirit GLS scripting
From Illustrator we access the laser as for a printer.I'm looking for a script to automate the options of the GLS usb Laser cutting machine.
View Articleartboard name as header of artboard?
is that possible without me manually doing each one? i have like 50 so i'd prefer not to... so, i have my artboards, all pretty and done. i named each dartboard so when i export them as jpegs they are...
View ArticleNew Site Post
Hi All, I finally got around to writing a post for my site Logging with a smile 😃 | Creative-Scripts.comThe topic might not be that interesting, but there's a few functions on the post that...
View ArticleScript : Save Illustrator CC to CS6
Hello, I am really beginner in the use of scripts in illustrator so I try my luck here! I'm looking for a batch action script that would save my Illustrator CC files to Illustrator CS6, with a suffix...
View Articlehow to change both fill color and stroke color
hello guys,i'm new to JS , i'm trying to write a script that can create some rectangle and put them in right places. it will create dieline for shippers.and,here is my codevar mm =2.834645669291; var...
View ArticleJETalmage's Script Library
Hi -- just wondering if anyone knows what became of the great repository of AI scripts JET had posted on the web -- I have been using a modified version of his Label Script and went looking recently...
View Articlesplit point type text
Hello everyone, i am having Point type text i need to split in to two for example, this is text which exceeds the art board , i want the text split in to two can anybody provide me a solution for...
View ArticlePath with fill
PathItems doesn't have the method to find if a path has a fill, which is what I must know ?
View ArticleHow to automate "Fit to Artwork Bounds"?
Task is easy for first look.I just need "Object" -> "Artboards" -> "Fit to Artwork Bounds" in script.But can't find such function! Please, help me to find, if u know.
View ArticleHow to correct (round) the size value?
All documents i have to work with, they artworks size is like "W:700,125 H:500,211" or "W:400,114 H:500,024".I need them to "ideal" values, like "W:700 H:500" or "W:400 H:500".Mannually is too long and...
View ArticlePop-up despite setting updateLegacyText to 'true'
Hi there, My scripted Illustrator workflow involves working with a lot of files with legacy text. The script I use to open these files creates an OpenOptions() object, to which updateLegacyText is set...
View ArticleEditing Script – Export Layers as Legacy Version
Hello all, I'm running illustrator 17, on Mac, and I found this great script located here: Layer Compose , which exports layers as individual files. However I need to export from version 17, to...
View Article