• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Is it possible to use standard JavaScript methods with Installer classes/objects?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Is it possible to use standard JavaScript methods with Installer classes/objects?
      • From: Dodger <email@hidden>
  • Prev by Date: Re: Codesinging and timestamping
  • Next by Date: Re: Is it possible to use standard JavaScript methods with Installer classes/objects?
  • Previous by thread: Re: Codesinging and timestamping
  • Next by thread: Re: Is it possible to use standard JavaScript methods with Installer classes/objects?
  • Index(es):
    • Date
    • Thread