Re: Get System Info - How
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.