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.