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
|