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: Paul Berkowitz <email@hidden>
- Date: Sun, 10 Feb 2002 08:49:43 -0800
On 2/10/02 5:18 AM, "has" <email@hidden> wrote:
>
======================================================================
>
>
on monthToInteger(theMonth)
>
if theMonth is January then return 1
>
if theMonth is February then return 2
>
if theMonth is March then return 3
>
if theMonth is April then return 4
>
if theMonth is May then return 5
>
if theMonth is June then return 6
>
if theMonth is July then return 7
>
if theMonth is August then return 8
>
if theMonth is September then return 9
>
if theMonth is October then return 10
>
if theMonth is November then return 11
>
if theMonth is December then return 12
>
error "Invalid value (not a month)."
>
end monthToInteger
>
>
======================================================================
>
>
Not beautiful, but it's faster than the FV method on the first 10 months
>
(and much faster than the list iteration method).
Did you try it with "else if" too? Is 'else if' just the same?
--
Paul Berkowitz
_______________________________________________
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.