• 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
Re: Problems with the InstallationCheck script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with the InstallationCheck script


  • Subject: Re: Problems with the InstallationCheck script
  • From: Peter Bierman <email@hidden>
  • Date: Tue, 4 Dec 2007 11:43:20 -0800

At 9:58 PM -0800 12/3/07, Nathan Duran wrote:
On Dec 3, 2007, at 6:28 PM, Peter Bierman wrote:

Furthermore, this isn't JavaScript + DOM like in a web browser. There are no DOM methods available in the installer's JavaScript sandbox. Instead, there are a small number of utility functions available under the global 'system' object.

I understand the distinction, the language's peculiar notions of scope and closures-over-classes flavor of OOP are just not something I generally expect (or want) to have to deal with any more often than I absolutely have to, and it seemed an odd choice unless security driven.


JavaScript (like all languages) certainly has quirks.

I'd be pretty frightened if someone needed to use OOP in their distribution script. :-)

The JavaScript snippets run by the installer are supposed to be very short functions that inspect some properties of the system, packages, or user's selections, and typically return true or false.

I hope that the C like syntax plus native string support makes doing that as painless as possible for our developers.

-pmb
_______________________________________________
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


References: 
 >Problems with the InstallationCheck script (From: "John Poole" <email@hidden>)
 >Re: Problems with the InstallationCheck script (From: Bill Coderre <email@hidden>)
 >Re: Problems with the InstallationCheck script (From: Nathan Duran <email@hidden>)
 >Re: Problems with the InstallationCheck script (From: Peter Bierman <email@hidden>)
 >Re: Problems with the InstallationCheck script (From: Nathan Duran <email@hidden>)

  • Prev by Date: Re: "Install Failed" happened when I delete folder "/private/tmp"
  • Next by Date: Re: Distribution and JavaScript docs pointer (was Re: Problems with the InstallationCheck script)
  • Previous by thread: Re: Problems with the InstallationCheck script
  • Next by thread: "Install Failed" happened when I delete folder "/private/tmp"
  • Index(es):
    • Date
    • Thread