Re: X, Classic, or 9?
Re: X, Classic, or 9?
- Subject: Re: X, Classic, or 9?
- From: Gil Dawson <email@hidden>
- Date: Tue, 18 Jan 2005 15:47:52 -0800
At 5:04 PM -0800 1/13/05, Gil Dawson wrote:
Can you think ofsomething to test at the beginning of the script to
tell which environment it is running in, so I'll need to keep only
one consolidated version?
At 9:28 AM +0100 1/14/05, yvan-koenig wrote:
...«event fndrgstl» "sysv"...
At 1:51 PM -0800 1/16/05, Gil Dawson wrote:
However, system attribute "sysv" yields hex 0922 when the script is
running in Classic (under 10.3.7) and also hex 0922 when the script
is running in a computer booted with MacOS 9.2.2. It's the same
number in both cases.
At 2:07 PM +0000 1/17/05, Nigel Garvey wrote:
tell application "Finder" to set FinderSysv to («event fndrgstl» "sysv")
... set OSSysv to («event fndrgstl» "sysv")...
What an excellent idea! Who woulda thunk that the Finder and the
System would return distinct values? But here they are (with my
handy CalcWorks hex calculator* performing translations):
When I run a similar script with Script Editor 2.0 in 10.3.7:
(*FinderSysv=4151, OSSysv=4151*) = hex 1037
When I run it with Script Editor 1.8.3 in 10.3.7 Classic:
(*FinderSysv=4151, OSSysv=2338*) = hex 1037, hex 922
When I run it on another machine with 9.2.2:
(*FinderSysv=2338, OSSysv=2338*) = hex 922
Et voila! We have discriminated among the three!
Thanks for your help, guys.
--Gil
* - http://brochusoftware.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden