Flash 10 (AS3): Pass Parameters to fscommand (from Projector)?
Posted
by yar
on Stack Overflow
See other posts from Stack Overflow
or by yar
Published on 2010-04-21T13:54:25Z
Indexed on
2010/04/21
15:53 UTC
Read the original article
Hit count: 1139
Here is my shell script (fscommand/blah.sh
):
open -a /Applications/TextMate.app/ $1
and here is my ActionScript 3.0:
flash.system.fscommand("exec", "blah.sh blah.txt");
this does not work. If I get rid of the $1
from the shell script and the blah.txt
it works fine. How can I pass parameters to the shell script? (yes, the shell script works fine with the parameter when called from the command line).
Note: This is on OSX but I need this to work on Windows as well.
Edit: "Doesn't work" also means no trace, no error :)
© Stack Overflow or respective owner