Re: Create a folder with today's date as the folder name
Re: Create a folder with today's date as the folder name
- Subject: Re: Create a folder with today's date as the folder name
- From: has <email@hidden>
- Date: Mon, 11 Feb 2002 14:15:15 +0000
Shane Stanley wrote:
>
>
> I found that this code works quite well, and quite fast:
>
>
>
> set theMonth to text 1 through 3 of (month of (current date) as text)
>
> set allTheMonths to "JanFebMarAprMayJunJulAugSepOctNovDec"
>
> set monthInteger to ((offset of theMonth in allTheMonths) + 2) div 3
>
>
But it is language dependent, which I guess rules it out for Has's use in a
>
mod.
If you mean human language, afaik it's not. I believe month constants
always coerce to their English equivalent, e.g. June-->"June", no matter
what the system. It's full dates and date strings you have to watch for
there.
If you mean AS language, then yeah, it won't work on eariler versions of that.
AS's handling of dates is periodically brilliant, frequently eccentric and
occasionally downright bizarre...
HTH
has
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.