Localized versions of AppleScript?
Localized versions of AppleScript?
- Subject: Localized versions of AppleScript?
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 28 Jan 2003 18:41:46 -0800
I wasn't aware until now that there were localized versions of AppleScript
in OS X. A routine in one of my scripts that checks whether the user has AS
1.8.3 or later installed depends on the version having nothing but numeric
digits and 1 or 2 periods:
set strVersion to my version as string
set AppleScript's text item delimiters to {"."}
set allDigits to text items of strVersion
set AppleScript's text item delimiters to {""}
set numVersion to (item 1 of allDigits & "." & (items 2 thru
-1 of allDigits)) as real
if numVersion < 1.83 then
beep
--etc.
But 'as real' is now errorring in a German OS 10.2.x (I'm not sure which one
yet) with
'Can't make "D1-1.9" into a real.'
Since when are there localized versions of AppleScript? ("D" is probably
"Deutsch" = German.) What's different about them? Or is this some special
version?
I know there's another way to get the version, as outlined on Bill
Cheeseman's AppleScript Sourcebook site. I'll report back how this German
version compares to US version 1.9 and 1.9.1.
--
Paul Berkowitz
_______________________________________________
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.