Saving FreeHand Files with AppleScript

June 15th, 2006 by Posted in Macromedia FreeHand, Macromedia Products

Saving FreeHand Files with AppleScript

Issue

How can I convert existing FreeHand 5, 7 and 8 documents to FreeHand 9?

Solution

The following basic script will save a file as FreeHand 9:

tell application “FreeHand 9″
activate
make new document
save last document as “DataTypeAGD4″ in file “hard drive name:folder name”
end tell

Note: Datatype AGD4 is the designation for the FreeHand 9.x format, and AGD3 is the designation for FreeHand 8.x. You shouldn’t have to specify this, but it doesn’t work unless you do. For further information on scripting FreeHand, consult the AppleScript Dictionary.