Posts Tagged ‘scripts’

Script: Place Multiple Files in Illustrator (Kelso)

Tuesday, March 10th, 2009

[Editor's note: This new script allows multiple files to be placed into Adobe Illustrator at once. Illustrator's native place command can only handle 1 single file at once. This script was commissioned by Eric at Nutshell Communications, Inc.]

This script will allow you to (import) place multiple files as separate named layers from a designated folder to a new Illustrator document. The files are all placed at once, you don’t get to control individual placement (but of course you can modify location after the script runs). Script should work with CS2, CS3, and CS4, both Mac and Windows.

To install new scripts you need to:

  • Download either the IMAGES version (eg, JPG, GIF, TIF, etc) or the EPS version.
  • Quit Illustrator
  • Copy the script file into the Illustrator application folder’s “Presets” » “Scripts” subfolder. If you are in CS4 this will be the application folder’s “Presets” » “en_US” » “Scripts” subfolder (transpose “en_US” with your local language string).
  • After restarting Illustrator, you can find the scripts in the menu “File” » “Scripts”;
  • TIP: You can create subfolders in the scripts folder to organize your scripts

Usage

  • The script asks for a folder to be selected by the user in a normal file open dialog.
  • All loose files are examined and if they match EPS file type then they are placed (nested folders not examined).
  • It is easy to limit this to EPS or add other file types (see below)
  • The files are placed into the middle of the document (or registered to a 9-point page location).
  • Each placed file gets its own layer, the layer name matches the placed file’s name.
  • The file is not auto-saved. You do that manually.

Placement Options

Line 7 controls the placement of the imagesinto the document. These are 9-point registration of ul, ml, ll, um, mm, lm, ur, mr, lr.
var placement9pointAlignment = “mm”;

Adding More File Types

Line 33 controls which file extensions are supported:
if( (fName.indexOf(“.eps”) == -1) ) {

You can easily expand the file types supported as shown in the commented out line in 34:
//if( (fName.indexOf(“.eps”) == -1) && (fName.indexOf(“.gif”) == -1) && (fName.indexOf(“.jpg”) == -1) && (fName.indexOf(“.png”) == -1) && (fName.indexOf(“.bmp”) == -1) && (fName.indexOf(“.tif”) == -1) && (fName.indexOf(“.psd”) == -1)) {

To allow more file types, use the formatting and grammar as in line 34.

Wow, How Fast Time Flies (Kelso)

Monday, October 20th, 2008

It’s been a year since I launched my site to promote some of the scripting (programming) work I was doing and to list useful plugins for Adobe Illustrator other cartographers and graphic designers. I launched my blog soon after to note websites, graphics, and concepts that attracted my attention. It’s proven a useful notepad to organize these for my reference and to share with others.

Some stats to geek out with:

All-time most popular blog posts:
Meet Toni Mair — Terrain Artist Extraordinaire

Dorling Cartograms – Carbon Atlas – SND Awards

Recent top blog posts:
Anything iPhone and GPS
GPS Kit – New software app for iPhone 3G (Kelso)

iPhone GPS with iTrail and RunKeeper (Kelso)

Mapping and GPS on the iPhone, Part 2

Mapping and GPS on the iPhone

Total blog pageviews: 60,000 since Nov. 29th, 2007.

Total site pageviews (including blog): 87,000 since Oct. 8th, 2007.

Site visitors are from all around the world including 154 countries and all 50 states (please excuse the terrible Google maps. Darker colors = more visitors. “City” views not comprehensive.):

Most visitors use Firefox or Safari (only 25% use Internet Explorer). Windows users account for 70% with most the rest on the Mac, though a couple Wii, Playstation, and iPhone users. Almost everyone has at least a 17″ monitor with over 75% having a larger monitor size up to 1920 x 1200. Most everyone has some version of Flash Player 9 installed. Only 2% are on dialup (though 28% do not list their connection speed). All these stats are from Google Analytics, a very awesome free tool that Google uses to pump their ad sales.

Keep Up-To-Date With My Scripts

Wednesday, April 2nd, 2008

I have added an announcement email list to my site. If you would like to stay informed of changes to any of my scripts or be alerted if I release new scripts, please fill out the following form:




Name:
 
E-mail:
 
How did you hear about my scripts?
(eg, Search engine, friend, cartotalk, etc.)
What scripts are most useful?
(eg, Find and Replace Graphics)
Have a script idea?