SCAN commands with live code
Fraser Gordon
fraser.gordon at runrev.com
Fri Jan 24 16:22:40 EST 2014
On 24/01/2014 21:16, Mark Schonewille wrote:
> $0 is a special variable containing the app path and $1 contains the
> document path.
There are in fact a whole host of these special variables: $0, $1, $2,
... . As Mark said, the first of these is the path to the app. The later
ones are the arguments to the app, e.g.:
your.app --foo bar --baz
would give you:
$0 = your.app
$1 = --foo
$2 = bar
$3 = --baz
To find out how many arguments you have, there is the special variable $#
Regards,
Fraser
More information about the use-livecode
mailing list