# Passing arguments from AIR to a JSF

**URL:** <https://forum.kirupa.com/t/passing-arguments-from-air-to-a-jsf/329782>\
**Category:** Uncategorized\
**Created:** [October 15, 2012, 4:30pm UTC](https://forum.kirupa.com/t/passing-arguments-from-air-to-a-jsf/329782 "2012-10-15T16:30:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bossmonkey](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@bossmonkey](https://forum.kirupa.com/u/bossmonkey)\
**Post date:** [October 15, 2012, 4:30pm UTC](https://forum.kirupa.com/t/passing-arguments-from-air-to-a-jsf/329782/1 "2012-10-15T16:30:02Z")

</div>

I’m working on an AIR tool with which the user selects a list of files. I would like to pass this list of files to a JSF, so Fireworks can run a batch process on them.  
I’ve set it up so that AIR triggers the .jsf to run, which is definitely a step in the right direction. Basically:

```auto

var filePathOfJsfFile:String = "C:\...whatever";
var fwFile:File = new File("C:\Program Files (x86)\Adobe\Adobe Fireworks CS5\Fireworks.exe");
var args:Vector.<String> = new Vector.<String>();
args.push(filePathOfJsfFile);
var info:NativeProcessStartupInfo = new NativeProcessStartupInfo();
info.executable = fwFile;
info.arguments = args;
var process:NativeProcess = new NativeProcess();
process.start(info);

```

This opens Fireworks and triggers the batch file to start. From here, how do I pass that list of files (and other info) to the jsf file? How do I access that information from within the jsf file once I’ve sent them?

Thanks for the help.
