Re: International version
Re: International version
- Subject: Re: International version
- From: Paul Skinner <email@hidden>
- Date: Thu, 20 Sep 2001 10:10:46 -0400
on 9/20/01 6:23 AM, email@hidden wrote:
>
I need to determine what language is currently being ran on a machine
>
tell application "Finder"
>
set findVer to version of application "Finder"
>
set result1 to offset of "-" in (reverse of characters of findVer) as
>
string
>
set whatever to (text from beginning to -(result1 + 1) of findVer)
>
set result2 to offset of "1" in (reverse of characters of whatever) as
>
string
>
set LangBadge to (text from beginning to -(result2 + 1) of whatever)
>
(*If is International System then is Z, if Spanish is ,if German is D
>
, if French is FU , is Japanese J US is US *)
>
>
end tell
>
this is fine on classic , but I need to do the same on OS X.
>
>
There seems to be very little documentation regarding the system attribute
>
command - and I have tried the obvious
>
- anything volunteered?
>
Peter James - Sophos Plc
This returns "9.1." on my system. There is no "-" in my version info.
"PowerBook G3 Series / 400 MHz / 9.1 US / CarbonLib 1.3.1"
--
Paul Skinner
"space is a myth perpetrated by the makers of time"