• 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: Return Current OS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Return Current OS


  • Subject: Re: Return Current OS
  • From: Gary <email@hidden>
  • Date: Wed, 20 Nov 2002 17:54:59 -0500

"Pepper",

Here is what you need.

-- Checks for Mac OS 8.1 or higher
copy my gestaltVersion_info("sysv", 4) to {system_version, system_string}
if the system_version is less than "0810" then
display dialog "This script requires Mac OS 8.1 or higher." & ,
return & return & "The currently installed version is: " & ,
system_string buttons {"Cancel"} default button 1
end if

You just need to try with different (than "0810") numbers to get your
minimum requirements.


On 11/20/02 11:09 AM, Sgt. Pepper wrote:

> Hello,
> Can someone please help me with this syntax. I am writing a script
> in which I need to determine the OS of the mac that the script is
> running. I have tried everything I could think of and all I was able
> to do was to get Apple System Profiler to return a Unicode Text Doc.
> Here's a brief example of what I'm looking to do:
>
<clipped>

> My apologies if this has already been addressed but I have searched
> through past posts and can't find a thread concerning this.
>

But you didn't check the AppleScript website, which is where I got that code
chunk. You can get more here:

<http://www.apple.com/applescript/guidebook/sbrt/>

Then just click on "Environment Checks".

> ---
> Thanks!
>
> Live the Dream!
Whose dream? ;)
_______________________________________________
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.

References: 
 >Return Current OS (From: "Sgt. Pepper" <email@hidden>)

  • Prev by Date: Re: Getting a value from one Filemaker DB and see if it exists in another.
  • Next by Date: Re: AppleScript CGI and Mac OS 10.2.x
  • Previous by thread: Re: Return Current OS
  • Next by thread: Just curious
  • Index(es):
    • Date
    • Thread