• 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: Set hours of date = stack overflow error on 10.3.9?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Loren Ryter <email@hidden>
  • Date: Thu, 15 Dec 2005 10:14:30 -0500
  • Thread-topic: Set hours of date = stack overflow error on 10.3.9?



On 12/15/05 6:05 AM, "Yvan KOENIG" <email@hidden> wrote:

>
> 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
>

Yvan,

Thanks.  That is good and apparently works on Panther.  However the other
way will not work:

Set bedhours to hours of bedtime


I get an error on panther:  can't get hours of date "<the current date>"

Set bedhours to hours of (time of bedtime):  can't get hours of 82000

What's the work around?  And why doesn't it work on Panther anyway?

Thanks.





 _______________________________________________
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: Set hours of date = stack overflow error on 10.3.9?
      • From: Yvan KOENIG <email@hidden>
References: 
 >Re: Set hours of date = stack overflow error on 10.3.9? (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: last day of the month of a date
  • Next by Date: Re: last day of the month of a date
  • Previous by thread: Re: Set hours of date = stack overflow error on 10.3.9?
  • Next by thread: Re: Set hours of date = stack overflow error on 10.3.9?
  • Index(es):
    • Date
    • Thread