• 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: Create a folder with today's date as the folder name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Create a folder with today's date as the folder name (From: has <email@hidden>)

  • Prev by Date: Re: date 0
  • Next by Date: Disappearing OSAX
  • Previous by thread: Re: Create a folder with today's date as the folder name
  • Next by thread: Re: Create a folder with today's date as the folder name
  • Index(es):
    • Date
    • Thread