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