• 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: Month Names
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Month Names


  • Subject: Re: Month Names
  • From: Luther Fuller <email@hidden>
  • Date: Tue, 10 Nov 2009 14:38:42 -0600

On Nov 10, 2009, at 12:22 PM, Christopher Nebel wrote:
> Sort of.  Ed is correct in that the initial result is an enumerator, not text, and is therefore never localized.  Coercing it to text uses the normal enumeration-to-text coercion, which simply gives you the name of the enumeration as text, so it stays in English.  There is no totally reliable way in pure AppleScript to get the localized month name.  However, you can fake it for particular locales by tearing apart date strings; you can use 'do shell script "date +%B"' if your LANG is set properly; and if you're using AppleScriptObjC, you can use CFDateFormatter.

I can't get any language other than English on my Mac. Perhaps it has something to do with installing the system in English.

If the Mod Date column always shows the month in English, then I will simply use English for the month named folders my script will create.

The question I need answered is ...
For a system originally installed in a language other than English, what language appears in the Mod Date column of a list view folder? Is it always English?

 _______________________________________________
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: Month Names
      • From: Christopher Nebel <email@hidden>
References: 
 >Re: Month Names (From: "Stockly, Ed" <email@hidden>)
 >Re: Month Names (From: Luther Fuller <email@hidden>)
 >Re: Month Names (From: Christopher Nebel <email@hidden>)

  • Prev by Date: AppleScript 2.1.1 Release Notes?
  • Next by Date: Re: spurious timeout on nth Apple event on Snow Leopard
  • Previous by thread: Re: Month Names
  • Next by thread: Re: Month Names
  • Index(es):
    • Date
    • Thread