• 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
Re: International Colors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: International Colors


  • Subject: Re: International Colors
  • From: Robert Poland <email@hidden>
  • Date: Sun, 06 Nov 2011 12:06:59 -0700

On Nov 6, 2011, at 10:12 AM, KOENIG Yvan wrote:

Le 6 nov. 2011 à 17:22, Thomas Fischer a écrit :

Hi Luther,

the colors are written in a file "Labels.string", the ones used for me is

/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/Resources/German.lproj/Labels.strings

There are similar ones for other languages present:
da.lproj, Dutch.lproj, English.lproj, fi.lproj, French.lproj, German.lproj, Italian.lproj, Japanese.lproj, ko.lproj, no.lproj, pl.lproj, pt_PT.lproj, pt.lproj, ru.lproj, Spanish.lproj, sv.lproj, zh_CN.lproj, zh_TW.lproj

I don't know if this might help.

Best
Thomas

Thanks a lot

Here is a script which extracts the list in use in the running operating system.

set colors_loc to {}

repeat with i from 0 to 7
copy (my get_color_loc(i)) to end of colors_loc
end repeat
colors_loc

on get_color_loc(num)
set p2l to (path to library folder from system domain) as text
set path2res to p2l & "Frameworks:ApplicationServices.framework:Versions:A:Frameworks:HIServices.framework:Versions:A:Resources:"
tell application "Finder" to return localized string ("Label_Name_" & num) from table "Labels" in bundle file path2res
end get_color_loc

Yvan KOENIG (VALLAURIS, France) dimanche 6 novembre 2011 18:12:14

A little more fuel for the fire:

set colors_loc to {}
set newList to {}

repeat with i from 0 to 7
copy (round (abs i - 8) as integer) & "-" & ((my get_color_loc(i)) & ", ") to end of colors_loc
end repeat

display dialog "" & colors_loc

repeat with i from 8 to 1 by -1
copy item i of colors_loc to end of newList
end repeat

display dialog "" & newList

on get_color_loc(num)
set p2l to (path to library folder from system domain) as text
set path2res to p2l & "Frameworks:ApplicationServices.framework:Versions:A:Frameworks:HIServices.framework:Versions:A:Resources:"
tell application "Finder" to return localized string ("Label_Name_" & num) from table "Labels" in bundle file path2res
end get_color_loc


Robert Poland - Fort Collins, CO



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: International Colors
      • From: KOENIG Yvan <email@hidden>
References: 
 >detect return, expanded (From: Robert Poland <email@hidden>)
 >International Colors (From: Luther Fuller <email@hidden>)
 >Re: International Colors (From: KOENIG Yvan <email@hidden>)
 >Re: International Colors (From: Luther Fuller <email@hidden>)
 >Re: International Colors (From: Thomas Fischer <email@hidden>)
 >Re: International Colors (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Re: International Colors
  • Next by Date: Re: International Colors
  • Previous by thread: Re: International Colors
  • Next by thread: Re: International Colors
  • Index(es):
    • Date
    • Thread