• 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: ensuring that "run script" runs the script in OS X ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >ensuring that "run script" runs the script in OS X ? (From: Bill Christens-Barry <email@hidden>)

  • Prev by Date: Re: Call Objective-C methods from any script
  • Next by Date: Re: Call Objective-C methods from any script
  • Previous by thread: ensuring that "run script" runs the script in OS X ?
  • Next by thread: Re: ensuring that "run script" runs the script in OS X ?
  • Index(es):
    • Date
    • Thread