A lame question from a newbie

TME520

Registered
Sorry for asking such a lame question, but how can I get a list of system attributes available with APPLESCRIPT ? I took a look at several websites, but I found nothing...please help !
 
While you're in the Script Editor, choose "Open Dictionary" from the "File" menu. Then, choose the Application you wish to script, and click "open." There you go. Have fun.

Enjoy your AppleScript!
 
Thanx for your replies, but I think I should give you an example of what I am searching for. Look :

tell application "Finder"

end tell
 
Thanx for your replies, but I think I should give you an example of what I am searching for. Look :

tell application "Finder"
set OSVersion to system attribute "sysv"
end tell

How can I have a list of the others system attributes like SYSV ?
 
http://www.apple.com/applescript/release_notes/181OSX.html

The system attribute command has been extended to provide information on the user's environment variables. These are set up at user login time and cannot be altered. If the direct parameter to system attribute is a four-character Gestalt code, it is executed as in Standard Additions 1.7; if not, it attempts to get an environment variable by that name, returning either the value of the variable or an empty string. (Note that system attribute now will not fail with an error; it simply returns an empty string.) If called with no parameters, system attribute returns a list of all currently-defined environment variables.

The gestalt selectors are listed here:

http://developer.apple.com/documentation/Carbon/Reference/Gestalt_Manager/
 
Back
Top