Re: Nigel Garvey <email@hidden>
Re: Nigel Garvey <email@hidden>
- Subject: Re: Nigel Garvey <email@hidden>
- From: "Arthur J Knapp" <email@hidden>
- Date: Thu, 22 Feb 2001 11:10:23 -0500
>
Subject: Re: Has the 5th business day of the month passed???
>
Date: Thu, 22 Feb 2001 00:20:40 +0000
>
From: Nigel Garvey <email@hidden>
>
Your script works effectively, but it's possible to compress the logic a
>
bit.
>
... Jeff Baumann
>
should avert his gaze now:
>
tell (current date) to set fifthBusinessDay to its day > 7 or (its day
>
> 5 and its weekday is Saturday) or (its day is 7 and its weekday is Sunday)
What the... !!!
Hey, how... ???
Stop that. You are making the rest of us look bad. ;-)
I kid you not, this is the best single line of AppleScript
code I have ever seen. It's clean, clear, efficient, and not
at all obfuscated. :)
--
{
Arthur J Knapp, of STELLARViSIONs ;
http://www.STELLARViSIONs.com ;
mailto:email@hidden ;
"...it's not my birthday,
it's not today..."
}