MACSCRPT Archives

May 2003

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Emmanuel <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Sat, 24 May 2003 14:49:28 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (25 lines)
At 10:33 AM +0100 24/05/03, Nigel Garvey wrote:
>Emmanuel wrote on Fri, 23 May 2003 10:07:24 +0200:
>
> >Namely, I suggest that we use "days" instead of the constants, e.g. "28 *
> >days". I hope this might help scripters use it without having to maintain
> >some URL or some "monthindex()" handler.
> >
> >-------------------------- tested for WWII D-Day and my birthday
> >on MonthIndexFromDate(theDate)
> >        copy theDate to theOtherDate
> >        set month of theOtherDate to january
> >        1 + (theDate - theOtherDate) div (28 * days)
> >end MonthIndexFromDate
> >-----------------------------------
>
>That *is* a "monthindex()" handler! ;-)

You must be kidding.

Yes that *is* a "monthindex()" handler but not one that you have to copy from here and maintain available.

What I claim is that scripters can write such a handler off the top of their head, while they could not for the original handler that was full of cryptic figures.

Emmanuel

ATOM RSS1 RSS2