Just pumped out an update that will work for this. Couple of new inline variables to support it.
Prior to executing a script in the foreground, a popup will appear prompting for the arguments to use in the script
Sample bash script
#description=This is a demonstration of argument passing
#argumentDescription=Enter in the arguments
#argumentDefault=argument1 argument2
echo "Argument1: $1"
echo "Argument2: $2"
Couple of caveats:
Because the arguments are passed from HTML to javascript to bash and then finally to the bash/php script, spaces and escaped characters really mess it all up. After banging my head against the wall for a bit with the existing framework, just decided to make a note to not pass any paths that have spaces contained within them (or escaped characters). At some point, I'll redo the entire execution framework from the ground up to process this properly if there is demand for it.
Arguments are currently not processed for running a script in the background or on a schedule. If your script has the ability to run both foreground and background, it must adjust itself accordingly to not having passed arguments to it when in background. EDIT: Any default arguments if specified are passed to the script.
At some point when I get bored, I'm going to have to create a new posting detailing all of the variables available now that they are growing in number....