Re: Days and hours
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