Re: Return Current OS
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.