Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Enthusiast Zone > Classic Macs and Mac OS > International Mac OS Version Numbers

International Mac OS Version Numbers
Thread Tools
Addicted to MacNN
Join Date: Sep 2000
Status: Offline
Reply With Quote
Apr 27, 2002, 07:54 PM
 
Using AppleScript, how can you get the version number of the Mac OS without the localized characters?

ie.

<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>tell application <font color = red>"finder"</font>
set theVersion to (version as string)
if theVersion is less than <font color = red>"<font color = blue>9</font>"</font> then
beep
end if
end tell
</font>[/code]


An international version returns the version as "S1-9.1" for example (Sweedish).

So what can be done?
I always use protection when fscking my Mac... Do you?
     
Forum Regular
Join Date: Feb 2001
Status: Offline
Reply With Quote
Apr 28, 2002, 01:11 AM
 
Add this right after you set theVersion:

set B to offset of "-" in theVersion
set theVersion to text from (B + 1) to end of theVersion

(142)
     
Addicted to MacNN
Join Date: Sep 2000
Status: Offline
Reply With Quote
Apr 28, 2002, 11:11 AM
 
Thanks
I always use protection when fscking my Mac... Do you?
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -4. The time now is 11:04 PM.
All contents of these forums © 1995-2015 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2015, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2