• 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: "Bob.Kalbaugh" <email@hidden>
  • Date: Sun, 10 Feb 2002 21:59:34 -0500

on 2/10/02 8:57 PM, Shane Stanley at email@hidden wrote:

> On 11/2/02 12:43 PM +1000, Michelle Steiner, email@hidden, 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.

What about the error string trick?

try
set theMonth to text 1 through 3 of (month of (current date) as text)
on error msg
try
set theMonth to word 3 of msg
on error
--something else
end try
end try
-->"February" (OS 8.5.1)

Still, I know that it's probably pushing it for a mod. And it probably slows
it down a bit.

--
Bob.Kalbaugh
_______________________________________________
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: Emmanuel <email@hidden>
References: 
 >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: Outlook Express: deleting HTML
  • 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