Re: Multi-Question about OSX
Re: Multi-Question about OSX
- Subject: Re: Multi-Question about OSX
- From: John W Baxter <email@hidden>
- Date: Thu, 13 Dec 2001 22:48:31 -0800
At 18:26 +0100 12/13/2001, JJ wrote:
>
Is "computer" command (from Finder) up and running in OS X?
>
>
So, are Gestalt selectors intact?
tell application "Finder"
system attribute "sysv"
end tell
The above returned
4113
under Mac OS X 10.1.1
But it's no longer part of Finder...it's in the Mac OS X Standard Additions:
system attribute: Test attributes of this computer (defined in:
StandardAdditions.osax)
system attribute type class -- the attribute to test
[has integer] -- test specific bits of response
Result: integer -- the result of the query
The "bare" command
system attribute "sysv"
produced the same 4113 result.
The "system attribute" both bare and in the Finder tell block above was
spelled "computer" before it was compiled. IMHO, this is a good change.
(One's old scripts should convert just fine, although you'll want to get
rid of the Finder tell blocks sooner or later.)
I don't know about Gestalt selectors in general in Mac OS X...I suspect
there are some old ones which aren't relevant, and some new ones...and they
quite possibly aren't called "Gestalt selectors" any more.
--John
--John