• 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: Has the 5th business day of the month passed???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Has the 5th business day of the month passed???


  • Subject: Re: Has the 5th business day of the month passed???
  • From: Emmanuel <email@hidden>
  • Date: Wed, 21 Feb 2001 16:41:12 -0500

At 12:07 -0500 21/02/01, Bourque, Jason wrote:
>
>Hello,
>
>I need to confirm that the fifth business day of the month has passed before
>continueing on with a script.
>I have done it successfully but I ask is there a better way.

At first sight, your code seems all right - maybe one could write one a
little more clever and much more unreadable.

The only point is, it is not portable and, even worse (I'm afraid), it
depends on your "Date & Time" settings: why do you use strings?

Couldn't you write:

---------------
set businessDayList to {Monday, Tuesday, etc.}
---------------

and

---------------
set dayOfToday to weekday of todayDate
---------------

?

(I have tested nothing)

Emmanuel


  • Follow-Ups:
    • Re: Has the 5th business day of the month passed???
      • From: Jason Bourque <email@hidden>
References: 
 >Has the 5th business day of the month passed??? (From: "Bourque, Jason" <email@hidden>)

  • Prev by Date: Re: Facespan 3.5.1: Is it good, or bad?
  • Next by Date: Re: Scriptable Text Editor
  • Previous by thread: Re: Has the 5th business day of the month passed???
  • Next by thread: Re: Has the 5th business day of the month passed???
  • Index(es):
    • Date
    • Thread