January 2006
Beginner
592 pages
16h 55m
English
system attribute
gestalt and environment variables
Returns the value of gestalt selectors (see http://developer.apple.com/documentation/Carbon/Reference/Gestalt_Manager/index.html ).
set n to system attribute "sysv" set s to "print sprintf \"%lx\", " & n set v to do shell script "perl -e " & quoted form of s set L to characters of v set v to "." & item -1 of L set v to "." & item -2 of L & v set v to ((items 1 thru -3 of L) as string) & v display dialog "You are running system " & v & "!"
Also returns the value of user environment
variables (see Chapter 25 for an example
). To find out what they are, issue the system attribute command with no parameters.
system attribute "SHELL" -- "/bin/bash"Read now
Unlock full access