• 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: Nigel Garvey <email@hidden>
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Nigel Garvey <email@hidden>
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: RE: Has the 5th business day of the month passed???
  • Next by Date: Re: magic integer converter number 62? - Joking???
  • Previous by thread: Re: FS upgrade to MacOS X
  • Next by thread: Re: Nigel Garvey <email@hidden>
  • Index(es):
    • Date
    • Thread