• 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: Rép: reading a property list item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rép: reading a property list item


  • Subject: Re: Rép: reading a property list item
  • From: "Mark J. Reed" <email@hidden>
  • Date: Wed, 21 May 2008 00:32:31 -0400

if I might suggest a Perly partial solution, this will get you a list
of month and day names in any POSIX locale installed on your system:

set pourLocale to "nl_NL"

set nomsDesMois to paragraphs of (do shell script "LC_TIME=" & quoted
form of pourLocale & " perl -MPOSIX -le 'for ($m=0;$m<12;++$m) { print
strftime(\"%B\", 0, 0, 12, 15, $m, 100) }' ")

set nomsDesJours to paragraphs of (do shell script "LC_TIME=" & quoted
form of pourLocale & " perl -MPOSIX -le 'for ($d=0;$d<7;++$d) { print
strftime(\"%A\", 0, 0, 12, $d, 0, 101) }' ")

This will get you a list of the available locale names:

set locales to paragraphs of (do shell script "locale -a")

although that includes some that differ only in character set; you
probably don't care about those differences, so this gets you a
shorter list of just the simple locale names:

set locales to paragraphs of (do shell script "locale -a | grep -v '\\.'")

The names are all ab_XY where "ab" is the ISO 2-letter language code
and "XY" is the ISO 2-letter country code.  es_ES is Spanish as she is
spoke in Spain; en_US is US English; fr_CA is Quebecois; etc.
 _______________________________________________
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: Rép: reading a property list item
      • From: KOENIG Yvan <email@hidden>
References: 
 >Rép: reading a property list item (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Re: Rép: reading a property list item
  • Next by Date: Get name of selected file in Finder window
  • Previous by thread: Re: Rép: reading a property list item
  • Next by thread: Re: Rép: reading a property list item
  • Index(es):
    • Date
    • Thread