• 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: Days and hours
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Days and hours


  • Subject: Re: Days and hours
  • From: Emile Schwarz <email@hidden>
  • Date: Wed, 19 Oct 2005 18:10:32 +0200

Hi Yvan, the list,

I confirm what Yvan said excepted that in Mac OS X 10.3.9, I get the month as lower case:


set foo to date "mercredi 19 octobre 2005 0:00:00"

display dialog month of foo


displays "oct" (without the quotes).

BTW: using "return month of foo" gaves me the Constant (October instead).



I just checked the 'System Preferences' application, but I get nothing nor in the Date or in the International panels about how I can change the month length (short like in 'oct' or long like in 'october').

For some reason, I feel that this is doable (the change is possible / the two ways can be asked / the default can be changed... you see what I mean).


From the language Reference:

<quote>
Month
One of the constants January,February,March,April,May, June,July,August,September,October,November, December or Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep, Oct,Nov,Dec.
</quote>


So, both formats exists in Constant...

But some things were (still are) untrue in the manual: AppleScripts date format follows the International settings, so I will not see AM or PM because it is not in my default France settings...

The Date Class entry talk about current date to search in "AppleScript Scripting Additions Guide"... I do not have it handly; I search...

And the quest failed. I even searched only "Scripting Additions Guide" without success.

Someone with more knowledge (or better memory) ?

Emile

email@hidden wrote:
Date: Wed, 19 Oct 2005 14:12:36 +0200
From: Yvan KOENIG <email@hidden>
Subject: Re: Days and hours
To: "AppleScript User's List" <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=WINDOWS-1252; format=flowed


Le 19 oct. 2005 , à 13:49, Mark J. Reed a écrit :


On 10/19/05, Bernard Azancot <email@hidden> wrote:



set mon to (choose from list {January, February, March, April, May, June, July, August, September, October, November, December}

I would like to know how could I translate this list in a french user friendly list and make the script function without issue.

Those month names above are constants, not strings. When they are displayed in the "choose from list" dialog box they should use whatever your locale settings are. So if your machine has French as its primary language, you should get a list of Janvier, Fevrier, etc. With the ^ in Aout, even...




I apologize Mark.

I am working with a french system.

The months are displaid with three letters IN ENGLISH.

I get
Jan
Feb
Mar
Apr
May


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Days and hours
      • From: Emmanuel <email@hidden>
    • Re: Days and hours
      • From: "Mark J. Reed" <email@hidden>
    • Re: Days and hours
      • From: Yvan KOENIG <email@hidden>
  • Prev by Date: Re: New iCal calendar
  • Next by Date: Re: Days and hours
  • Previous by thread: Re: Days and hours
  • Next by thread: Re: Days and hours
  • Index(es):
    • Date
    • Thread