• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: OS 9 or Classic, that's the question :-)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: OS 9 or Classic, that's the question :-)
      • From: Walter Ian Kaye <email@hidden>
    • Re: OS 9 or Classic, that's the question :-)
      • From: Michael Slomski <email@hidden>
References: 
 >Re: OS 9 or Classic, that's the question :-) (From: Steve Roy <email@hidden>)

  • Prev by Date: Re: Image Events, panther
  • Next by Date: Re: Image Events, panther
  • Previous by thread: Re: OS 9 or Classic, that's the question :-)
  • Next by thread: Re: OS 9 or Classic, that's the question :-)
  • Index(es):
    • Date
    • Thread