Is it possible to use standard JavaScript methods with Installer classes/objects?
Is it possible to use standard JavaScript methods with Installer classes/objects?
- Subject: Is it possible to use standard JavaScript methods with Installer classes/objects?
- From: Iceberg-Dev <email@hidden>
- Date: Thu, 19 Mar 2009 00:21:57 +0100
I would like to execute the system.run function by passing it an
array of arguments instead of a variable list of arguments.
From what I gather in the JavaScript reference book from O'Reilly,
it would look something like this:
system.run.apply(null,tArrayOfArguments)
Unfortunately, the JavaScript runtime is not happy with this and
trigger an exception (on Tiger and Leopard):
Mar 19 00:02:44 Selene : JavaScript error "Value undefined (result of
expression system.run.apply) is not object." while running
"__choice_function1"
Mar 19 00:02:44 Selene : __choice_function1 returned error: Value
undefined (result of expression system.run.apply) is not object.
allow-external-scripts is set to "yes"
I tried multiple variations such as:
system.run.apply(system,tArrayOfArguments)
run.apply(system,tArrayOfArguments)
with no success.
I looked at the release notes for Installer (on Tiger), the Installer
JavaScript Reference documentation but I'm still clueless.
Is it possible to do this?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden