I am working on an OS X version of my FlashCommand command line compiler, and I ran into a problem of how to tell Flash to run a JSFL file from the command line. Gary Grossman came to the rescue with the answer.
You have to use AppleScript to tell Flash to load the file. Here is an example:
osascript -e ‘tell application “Flash” to open alias “Mac OS X:tmp:myTestFile.jsfl”‘
If you are calling this from a script that uses Unix file paths, then you can use the following command:
osascript -e ‘tell application “Flash” to open posix file “/tmp/myTestFile.jsfl”‘
This will open Flash and have it execute the specified JSFL file.