Re: Month Names
Re: Month Names
- Subject: Re: Month Names
- From: email@hidden
- Date: Tue, 10 Nov 2009 20:02:12 -0800
Try
set month_num to (month of (current date)) as number
you can then look it up in a premade localized list
set german_months to {November, Dezember, etc.} -- they need to be in numerical order, beginning with January
set month_in_german to (item month_num in german_months) as string
Based on the number of the month in the list you can obtain the German equivalent.
Hope that helps.
Todd
On Nov 10, 2009, at 1:45 PM, Luther Fuller wrote:
> On Nov 10, 2009, at 3:40 PM, Mark J. Reed wrote:
>
>> On Tue, Nov 10, 2009 at 4:37 PM, Luther Fuller <email@hidden> wrote:
>>> This is not good! I have a script with the line
>>> set modification date of aFile to date "Saturday, January 1, 2000 12:00:00
>>> AM"
>>> Will this ALWAYS work correctly independently of the date format set by the
>>> user ?
>>
>> If the user copies and pastes the above text into script edtior on
>> their machine? No, it won't always work.
>>
>> But if they're starting with a compiled script, no problem. That
>> 'date "string"' gets turned into a date literal; the string is nowhere
>> to be found in the compiled script.
>
>
> That line is in fact in source code that's always compiled to an application bundle.
> It ought to work correctly.
>
> _______________________________________________
> 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
_______________________________________________
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