Re: ensuring that "run script" runs the script in OS X ?
Re: ensuring that "run script" runs the script in OS X ?
- Subject: Re: ensuring that "run script" runs the script in OS X ?
- From: Gnarlodious <email@hidden>
- Date: Tue, 18 Jan 2005 12:16:38 -0700
Entity Bill Christens-Barry spoke thus:
> My basic question is: how can I write a "run script" command that ensures that
> the script it runs runs in OS X AppleScript and not in Classic AppleScript? Is
> there syntax to designate which version things run in? I didn't see any
> obvious answers in the list archive
system attribute "sysv"
You will have to run this on a 9.2.2 machine to get the number, there's a
way to deduce it mathematically but I forget what it is. 10.3.6 returns 4150
Here's the rest of it:
set thous to hexVers div 4096
set hexVers to hexVers mod 4096
set huns to hexVers div 256
set hexVers to hexVers mod 256
set tens to hexVers div 16
set ones to hexVers mod 16
set osVers to (thous as string) & huns & "." & tens & "." & ones
I forget who to give credit for this, please excuse.
-- Gnarlie
_______________________________________________
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