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:
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.