flashme : Creating new FLAs from the command line on OS X

I recently switched back to OS X from Windows, and one of the things I missed was the ability to easily create a new FLA directly on the file system. This is much easy than opening Flash, and then navigating to where I want the file and saving it.

So, I put together a simple bash shell script called “flashme”. This basically allows you to create new FLAs from the command line. It will also optionally launch the FLA in Flash after it has been created.


You can download the script from here.Installation :Place flashme somewhere in your PATH, and make sure to chmod it to be executable (usually 755).Copy the include source.fla onto your computer, and place the path to it in the FLAPATH variable within the flashme file.Usage :flashme [-o] newFLAName-o : open the fla in Flash after it has been created. Optional.newFLAName : The name of the Flash that will be created. This can be a relative or absolute path to the file.Example :flashme -o app.flaCreates a new FLA named app.fla in the current directory and then opens it in Flash.Note, this will work on any system with bash installed, including Linux and Windows (with Cygwin).As usual, USE AT YOUR OWN RISK.Post and bugs, improvements or suggestions in the comments.

4 Responses to flashme : Creating new FLAs from the command line on OS X

  1. Michael Williams says:

    Back on the Mac… that-a-boy!

  2. David Nelson says:

    Should save some time, would be nice to write an app to include this as a context menu item.

  3. tobyjoe says:

    Mike – perhaps the FLAPATH should be an ENV var? if it isn’t set, ask for it. if it’s been set (manually per session or via .bashrc), don’t…? better than my glorified cp version i sketched out for ya, hehe. i don’t know what i was thinking…

  4. mike chambers says:

    I havent tested this yet, but if replace this line:FLAPATH=”/Users/mesh/bin/source.fla”with:if [ -z $FLAPATH]thenFLAPATH=”/Users/mesh/bin/source.fla”fiit should work. Basically, if you have an environment variable named $FLAPATH, it will use that. Other wise it will use the path specified in the script.mike chambersmesh@macromedia.com