• 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: Jason Bourque <email@hidden>
  • Date: Wed, 21 Feb 2001 19:49:58 -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

Well, I don't use date calculations much in my scripting. But thank you for
the imput.

Jason Bourque


References: 
 >Re: Has the 5th business day of the month passed??? (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: Scriptable Text Editor
  • Next by Date: Re: Digest default subjects (was Re: applescript-users digest, Vol 2 #406 - 2 msgs)
  • 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