"system info" ... questions

I can’t find any documentation on the “system info” command in Tiger. Can anyone point me in the right direction, or at least answer how I can pull those individual bits of info out as variables … ?

Thanks.

“System info” returns a record.

get AppleScript version of (system info)

Just change “AppleScript version” to whichever property you want to get.

And to get the options available, just enter:

system info

by itself and look at the result.

.open the Standard Additions dictionary and check out the “system information” class (under “Miscellaneous Commands”).

Equally good, Bruce, but really not faster.

Thank you all! I don’t know why I didn’t think of parentheses … but I’ve been scripting more in Terminal lately and I guess my brain was looking for escape characters. :slight_smile:

Ah, so that was your problem. I wasn’t sure what you were looking for.

If you were to try to run that without parentheses, you would be trying to get a property of a command; However, commands don’t have properties, so it won’t compile. When you add the parentheses, the “system info” command is run, and it returns a record. After that, the script tries to get a property from that record, which is what you’re looking for.