• 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
Localized versions of AppleScript?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Localized versions of AppleScript?
      • From: Axel Luttgens <email@hidden>
    • Re: Localized versions of AppleScript?
      • From: Steve Roy <email@hidden>
  • Prev by Date: Re: Name of current users home folder (OS X)
  • Next by Date: Re: [OT] AppleScript scripts versus Shell scripts
  • Previous by thread: Re: Run from Script Editor Only?
  • Next by thread: Re: Localized versions of AppleScript?
  • Index(es):
    • Date
    • Thread