• 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 07:32:18 -0400

On Wed, May 21, 2008 at 5:24 AM, KOENIG Yvan <email@hidden> wrote:
> And may I add that I am glad to read that my question get a response using
> perl even if my named ruby in a recent message ;-)

Perl is a very forgiving mistress, and asks only if you learned
anything new while you strayed. ;-) (There's a bevy of Ruby-inspired
features in the in-development Perl 6...)

Seriously, Ruby's builtin date/time formatting is oddly
locale-insensitive.  Python and Tcl are locale-sensitive but more
awkward to use from "do shell script" (e.g. can't write a loop without
a newline in Python, can't supply a hunk of code to run as a
command-line option to tclsh.  The difficulties are minor and
work-around-able, but increase the air resistance enough to keep me
from reaching for those tools from AS).

Note that the set of available locales might differ from machine to
machine, so putting the list in the comments is helpful but possibly
inaccurate.   You could explicitly check in the code against the
output of locale -a to see if the supplied locale is legal on the
current host, but you don't necessarily need to: Perl will silently
fall back on the default locale in that case and you'll just get
English names.

--
Mark J. Reed <email@hidden>
 _______________________________________________
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: Philip Aker <email@hidden>
References: 
 >Rép: reading a property list item (From: KOENIG Yvan <email@hidden>)
 >Re: Rép: reading a property list item (From: "Mark J. Reed" <email@hidden>)
 >Re: 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: Re: Rép: reading a property list item
  • 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