• 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: Days and hours
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Days and hours


  • Subject: Re: Days and hours
  • From: "Mark J. Reed" <email@hidden>
  • Date: Sun, 16 Oct 2005 20:26:24 -0400

On 10/16/05, Michelle Steiner <email@hidden> wrote:
set hrs to 0
set working_month to current date
set mon to (choose from list {January, February, March, April, May,
June, July, August, September, October, November, December} with
title "Employment month" with prompt "Enter the month for which you
wish to compute hours worked." default items {month of working_month})
try
     set mon to item 1 of mon
on error
     error number -128
end try
-- the try block checks for the user clicking cancel.

if mon is less than month of working_month then set year of
working_month to (year of working_month) - 1
-- If the month selected is less than the current month, then it was
selected for the previous year; adjust the year accordingly.

That doesn't make sense to me.  Shouldn't it be a month *after* the current month that triggers the "prior year" assumption?


--
Mark J. Reed <email@hidden>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Days and hours
      • From: Michelle Steiner <email@hidden>
References: 
 >Days and hours (From: Bernard AZANCOT <email@hidden>)
 >Re: Days and hours (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Is Classic running?
  • Next by Date: Re: Days and hours
  • Previous by thread: Re: Days and hours
  • Next by thread: Re: Days and hours
  • Index(es):
    • Date
    • Thread