Re: OS 9 or Classic, that's the question :-)
Re: OS 9 or Classic, that's the question :-)
- Subject: Re: OS 9 or Classic, that's the question :-)
- From: Christopher Nebel <email@hidden>
- Date: Mon, 27 Oct 2003 12:18:50 -0800
On Oct 27, 2003, at 5:11 AM, Steve Roy wrote:
Michael Slomski <email@hidden> wrote:
Is there an easy way for an script if it is running under true OS 9
or in Classic mode?
You could check if the Dock application is running.
That would work, albeit indirectly. The official answer is to use
'system attribute "mach"', which is the "machine type" selector. If it
returns 1206, you're running in Classic. How would you know this?
Read the Gestalt.h header. Where do you find that? If you've
installed the developer tools, it's in
/System/Library/Frameworks/CoreServices.framework/Frameworks/
CarbonCore.framework/Headers/Gestalt.h. Or you could get it from
<
http://homepage.mac.com/c.nebel>, if it's up, which it's currently
not.
--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.