Scripting Illustrator

I never thought I would write Javascript for Adobe Illustrator but here we are. A script to rename artboards sequentially.

You can grab the script Rename Artboards.jsx from because it’s simply one file and I didn’t feel like making an official repository for it.

Why? I found that at work I was renaming artboards in Illustrator so they’d have sequential file names/numbers when exporting them as separate PNG images. I got sick of doing it manually and found a solution. Since Illustrator is from Adobe I doubted (at first) that it would be easily scriptable, but hey… it is! Well, with Javascript. Meh. Anyway, it was easy enough to find some sample code that was close enough to what I needed.

I started by looking for a solution. This was my first result: How (to) batch rename artboards in Adobe illustrator?

I assumed Illustrator would have some sort of floating script palette, but no… So then I found: How to keep Illustrator Scripts handy?

That page points to Script Panel 2 and Adobe CC Scripts Panel. I’ve tried them both. I think I prefer the second, but both seem to work fine.

This seems pretty handy, so the next time I need to automate some task in Illustrator I’ll have to dig in and see if it can be solved with a script.




I’ve become quite the fan of Processing. When I first started to dig into the Arduino world, I turned to my old friend Perl to deal with Arduino<->Computer communication, but quickly discovered that Processing was an ideal environment for such a thing.

Perl is great (you know, IMHO and all that) but the main appeal for me has always been in Perl’s data processing capabilities, and having CPAN and a module for almost everything. Perl is fun, but it’s not FUN. I’ve dabbled with generating graphics with Perl using GD and SVG modules, but it’s not anywhere near the area known as fun.

Processing, in my mind, is built for fun. So what is Processing?

Processing is an open source programming language and environment for people who want to create images, animations, and interactions. Initially developed to serve as a software sketchbook and to teach fundamentals of computer programming within a visual context, Processing also has evolved into a tool for generating finished professional work. Today, there are tens of thousands of students, artists, designers, researchers, and hobbyists who use Processing for learning, prototyping, and production.

Processing sometimes gets called a “multimedia programming language” and is used quite a bit by artists and designers, and probably much less by hardcore software developers. Check out OpenProcessing for some great example sketches.


My own sketches are not very impressive yet, but as I said, Processing it a lot of fun. It’s reminiscent of the olden days of graphics on the Apple ][ where you plotted things out in HIRES graphics mode but, you know, way more advanced.

It’s pretty easy to build Processing sketches that respond to sensors connected to a microcontroller like an Arduino (see Accelerometer Art) and that’s something I’ll definitely be exploring more of in the future.


Processing runs on top of Java, or is a subset of Java, or whatever. This is great because you can easily create a Processing sketch that can run on Mac OS X, Windows, and Linux, and even create a standalone application for each platform. (It’s that promise of Java we had long ago!) But the real excitement is that the latest version of Processing lets you target Android as a platform. Supposedly you can build an app in Processing and get it into the Android Marketplace. (I’m not aiming to get anything into an ‘App Store’ but just want to run my own apps on my own devices, as mentioned in my Android vs. iPhone post.)

And speaking of the iPhone, it looks like iProcessing and Processing.js may be able to get Processing sketches running on iOS… neat! (Processing.js is also on my TO DO list. I’ve toyed with it briefly and it’s pretty amazing.)

One of my complaints about this “new world of Apps” on phones and tablets and non-traditional devices is that there is too much of a barrier to entry to building things that run on them. I’m hoping Processing might help bring that barrier down a bit.

Update: It seems May is Processing Month. I didn’t know! Now I feel compelled to do more.



I’ve uploaded a Greasemonkey script to It’s called WebGrader Link Rewriter and it takes the goofy Javascript used by and makes real links you can click on and open in a new tab/window. I made it because the developers of the site wrote what I consider poor code.

I should note that I contacted the company that develops WebGrader a few weeks back and said I could suggest improvements in their system, and they replied to me pretty welcoming. I have not gotten back to them yet, as I’ve been busy, but writing this script took me about 10 minutes. (Yes, I pretty much copied an existing script someone wrote to fix Haloscan comment links.) looks pretty awesome for those of us who want to put fixing sites into our own hands. I would like to be able to choose a license when uploading a script but hey, I’ll forgive that for now. (Maybe it’s all public domain? I dunno…)

I do worry that Greasespot “The weblog about Greasemonkey” hasn’t been updated since May 2007. I hope it’s not abandoned. Then again, I should look around more, since I’m new to this. There is also a wiki at I should explore.