• 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: Get System Info - How
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get System Info - How


  • Subject: Re: Get System Info - How
  • From: Christopher Nebel <email@hidden>
  • Date: Sat, 3 Apr 2004 11:49:37 -0800

On Apr 3, 2004, at 3:50 AM, Walter Ian Kaye wrote:

With the advent of Mac OS X and its Unix underpinnings, 'system attribute' gained functionality beyond Gestalt codes. In this particular case, USER is a Unix environment variable the same as $USER you would type at a shell prompt. ... Just don't ask me how it knows that a 4-byte Unix env. var. is not to be treated as a Gestalt selector. Maybe Chris knows...

It tries it as a Gestalt selector first; if that fails, it looks it up as an environment variable. Most environment variable names aren't four characters long, and those that are typically don't overlap, because they're all uppercase, and all Apple Gestalt selectors are lowercase.


--Chris Nebel
AppleScript Engineering
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: Get System Info - How (From: Bill <email@hidden>)
 >Re: Get System Info - How (From: email@hidden)
 >Re: Get System Info - How (From: Walter Ian Kaye <email@hidden>)

  • Prev by Date: Re: Utility to show key codes?
  • Next by Date: Strange error reading file...
  • Previous by thread: Re: Get System Info - How
  • Next by thread: combining open and run handlers
  • Index(es):
    • Date
    • Thread