5

Executing JSFL from the Command Line on OS X

 3 years ago
source link: http://www.mikechambers.com/blog/2004/02/20/executing-jsfl-from-the-command-line-on-os-x/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Executing JSFL from the Command Line on OS X

Friday, February 20, 2004

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.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK