Re: Set hours of date = stack overflow error on 10.3.9?
Re: Set hours of date = stack overflow error on 10.3.9?
- Subject: Re: Set hours of date = stack overflow error on 10.3.9?
- From: Yvan KOENIG <email@hidden>
- Date: Thu, 15 Dec 2005 12:05:35 +0100
Le 15 déc. 2005, à 4:14, Loren Ryter a écrit :
Puzzle:
A 10.3.9 user of Cast Away keeps getting a stack overflow error. I
tracked
down the problem to the following bit of code:
---------
property wakeup : current date
property bedtime : current date
set hours of wakeup to 8
set minutes of wakeup to 0
set hours of bedtime to 23
set minutes of bedtime to 0
set result to {bedtime, wakeup}
-------------------
It seems that a better code may be:
property wakeup : current date
property bedtime : current date
set time of wakeup to (8 * hours) + (0 * minutes) + 0
set time of bedtime to (23 * hours) + (0 * minutes) + 0
set result to {bedtime, wakeup}
Yvan KOENIG
_______________________________________________
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