can i use applescript to communicate with Flash MX 2004?

Is it possible to use applescript to communicate with flash mx 2004?

No, unless you use UI Scripting, which is a bit of tedious, a bit of unreliable and a load of slow.
The best way to automate tasks in Flash is using its built-in javascript engine, aka JSFL scripting, specially after the latest update “Ellipsis”, which includes a new API for file I/O. It’s very easy to use if you already know ActionScript.
It does exist a dedicated mailing list at:
http://flashguru.co.uk/mailman/listinfo/extendflash_flashguru.co.uk

yeah, what i actually wanted to do was to be able to open flash and run a JSFL command automatically, specifically from a script from within Xcode.

Oh, then it’s easy: write the jsfl stuff to a external text file and open it using Flash. Eg:

  • If this script errors in the “tell app Finder…” line, use “MFL2” instead of “com.macromedia.flash.7”.