Re: making a new folder
Re: making a new folder
- Subject: Re: making a new folder
- From: Michael Grant <email@hidden>
- Date: Fri, 02 Aug 2002 09:37:17 -0500
On 8/1/02 5:29 PM, "Bill Briggs" <email@hidden> wrote:
>
set {d, m, y} to {day, month, year} of todaysDate
>
set monthList to {January, February, March, April, May, ,
>
June, July, August, September, October, November, ,
>
December}
>
repeat with i from 1 to 12
>
if m = (item i of monthList) then
I've had lots of trouble with the 'month' keyword, which seems to come out
'jul' when I'm expecting 'July' and vice versa. (I read in one of the older
books, Goodman I think but I'm too lazy to look it up again now, that it's
not actually a string and can't be coerced to one--of course that may be
obsolete information.) What does work consistently is looping through the
month list and testing if that month is in the date string.
Michael
--
"The majority of mankind is lazy-minded, incurious, absorbed in vanities,
and tepid in emotion, and is therefore incapable of either much doubt or
much faith; and when the ordinary man calls himself a skeptic or unbeliever,
that is ordinarily a simple pose, cloaking a disinclination to think
anything out to conclusion."
-T.S. Eliot
_______________________________________________
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.