• 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: can't get version
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can't get version


  • Subject: Re: can't get version
  • From: Paul Berkowitz <email@hidden>
  • Date: Fri, 17 Jun 2005 07:52:02 -0700
  • Thread-topic: can't get version

On 6/17/05 6:30 AM, "has" <email@hidden> wrote:

> Robert Poland wrote:
>
>> What I'm looking for is a way to tell if the System is Tiger.
>
> (system attribute "sysv") >= 4160

That's the method that will work with all versions back to the wazoo. You
just have to know how to interpret it for specific versions you may be
looking for. (And of course has is giving the correct number for 10.4.0
there.)

But in Tiger there's a new easier method:


    system version of (get system info)
    --> "10.4.1"


You'll have to put it in a try block since it won't work in earlier
versions. So something like this will work OK until we get to Leopard:


try
    system version of (get system info)
    true
on error
    false
end try
set Tiger to result

--
Paul Berkowitz


 _______________________________________________
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

  • Follow-Ups:
    • Re: can't get version
      • From: Le Stang Jean-Baptiste <email@hidden>
References: 
 >Re: can't get version (From: has <email@hidden>)

  • Prev by Date: Re: can't get version
  • Next by Date: Re: can't get version
  • Previous by thread: Re: can't get version
  • Next by thread: Re: can't get version
  • Index(es):
    • Date
    • Thread