Re: Mac OS Version Sniffer
Re: Mac OS Version Sniffer
- Subject: Re: Mac OS Version Sniffer
- From: Rob Jorgensen <email@hidden>
- Date: Fri, 18 Oct 2002 12:13:36 -0400
At 10:50 AM -0500 10/18/02, Ken Goff wrote:
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?
My OS X machine is OS X only, so I can't offer much. When checking
the dictionary for OS X's System Events, it offers this:
classic boolean [r/o] -- (inherited from the "process" class) Is
the process running in the Classic environment?
Since I don't have Classic, I don't know if it will be helpful or not
in your situation. <shrug>
--
Rob Jorgensen
Ohio, USA
_______________________________________________
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.