Re: Best practices- nested loops or handlers or both
Re: Best practices- nested loops or handlers or both
- Subject: Re: Best practices- nested loops or handlers or both
- From: Dave Balderstone <email@hidden>
- Date: Mon, 01 Nov 2004 19:28:24 -0600
On Nov 1, 2004, at 6:58 PM, Eric Geoffroy wrote:
OK. Worked for two+ hours and can't figure out how to return from the
isWeekend(d) handler. I scoured the Neuberg book and I'm missing
something.
set d to current date
my isweekend(d)
set theDay to result
theDay
on isweekend(d)
if ((weekday of d) as string) contains "Saturday" or "Sunday" then
return true
else
return false
end if
end isweekend
_______________________________________________
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