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

**URL:** <https://forum.kirupa.com/t/can-you-pass-variable-via-fscommand-exec/189346>\
**Category:** flash\
**Created:** [June 1, 2006, 8:46pm UTC](https://forum.kirupa.com/t/can-you-pass-variable-via-fscommand-exec/189346 "2006-06-01T20:46:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iphotostuff](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/iphotostuff/32/2368_2.png) [@iphotostuff](https://forum.kirupa.com/u/iphotostuff)\
**Post date:** [June 1, 2006, 8:46pm UTC](https://forum.kirupa.com/t/can-you-pass-variable-via-fscommand-exec/189346/1 "2006-06-01T20:46:25Z")

</div>

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?

-i
