• 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: 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.

  • Follow-Ups:
    • Re: Create a folder with today's date as the folder name
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Create a folder with today's date as the folder name
  • Next by Date: Re: Create a folder with today's date as the folder name
  • 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