Can you pass variable via fscommand("exec")?

I’m building a CD ROM type small app, and I am using the fscommand(“exec”) to call applescripts. Do you know if there is any way to pass a variable to the applescript from Flash?

I have a functoin in flash that essentially calls an applescript that opens an external JPG in a specific program. I want the JPG name to be dynamic so that I don’t have to build a totally different applescript for every JPG I want to open.

Any bright ideas on how to make this dynamic?