• 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: Mac OS Version Sniffer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mac OS Version Sniffer


  • Subject: Re: Mac OS Version Sniffer
  • From: Ken Goff <email@hidden>
  • Date: Fri, 18 Oct 2002 10:50:49 -0500

At 7:01 PM -0700 10/17/02, Bill Cheeseman <email@hidden> wrote:

on 02-10-17 4:35 PM, Rob Jorgensen at email@hidden wrote:

> his is a rather dirty method that doesn't determine the version of
the OS but maybe it'll be sufficient.

try
path to control panels -- not present in OS X
-- do OS 9 stuff
on error number -43 -- error produced when run in OS X
-- do OS X stuff
end try

What he said.

Thanks. This works nicely, provided I control which version of the Finder and associated AppleScript application actually processes the script. In other words, if AppleScript (version 1.6) under OS 9 runs the script it works as does AppleScript (version 1.9) running under OS X.

To complicate the issue, ultimately I call this AppleScript within an application running under OS X Classic. Apple's Classic works quite well and it appears that AppleScript (version 1.6) then handles the script under Classic, rather than OS X's version. Not quite what I intended.

Is there any way to control which version of AppleScipt runs this script, even in those circumstances when OS X's Classic is running?

It may be 6 to 9 months before the Classic application I use is OS X native so I must use a Classic application during this transition period.
--
-Ken Goff
MacEssentials
_______________________________________________
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: Mac OS Version Sniffer
      • From: Bill Cheeseman <email@hidden>
    • Re: Mac OS Version Sniffer
      • From: Rob Jorgensen <email@hidden>
  • Prev by Date: Library Question
  • Next by Date: photoshop 6 + database
  • Previous by thread: Re: Mac OS Version Sniffer
  • Next by thread: Re: Mac OS Version Sniffer
  • Index(es):
    • Date
    • Thread