Migrate Freehand files to Adobe Illustrator

6.5k Views Asked by At

I have rudimentary skills in scripting that I got from free lessons, so I'm sorry in advance.

I got this script from Adobe (particularly to use in CS3).

I work in CS6 but have access to CS3 & CS4, if that helps (I've tried it in CS3 & CS6 but get the error).

The task of hand-migration 20 years of FH files to ai is daunting (opening each file on an old PowerPC in CS3, exporting as eps or ai, then opening on a new mac). While I understand Macs only do up to 1000 files at a time, that's much better, if I can get this script to run rather than giving this:

ERROR: 21, undefined is not an object

I opened it in ExtendScriptToolkit to see if anything leapt out at me but I'm afraid my meager skill set has failed.

1

There are 1 best solutions below

0
Andrew On

Look at this bit of the code:

// Set Freehand options
var FreehandOptions = app.preferences.FreeHandFileOptions;
FreehandOptions.convertTextToOutlines = false;
FreehandOptions.importSinglePage = false;

Since Illustrator CS6 doesn't support freehand file formats, there is no "FreeHandFileOptions" so it will never work in CS6. The script was written for CS4 but it still works in CS5.1.