Re: Is it possible to use standard JavaScript methods with Installer classes/objects?
Re: Is it possible to use standard JavaScript methods with Installer classes/objects?
- Subject: Re: Is it possible to use standard JavaScript methods with Installer classes/objects?
- From: Dodger <email@hidden>
- Date: Wed, 18 Mar 2009 16:41:24 -0700
You could pass it a piece of JSON and eval it, that way your array or
object "sneaks past" the function prototype.
2009/3/18 Iceberg-Dev <email@hidden>:
> 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
>
--
Dodger
_______________________________________________
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