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


  • Follow-Ups:
    • Re: Set hours of date = stack overflow error on 10.3.9?
      • From: Loren Ryter <email@hidden>
    • Re: Set hours of date = stack overflow error on 10.3.9?
      • From: Michelle Steiner <email@hidden>
References: 
 >Set hours of date = stack overflow error on 10.3.9? (From: Loren Ryter <email@hidden>)

  • Prev by Date: Re: Loading Print Styles in Quark?
  • Next by Date: Re: last day of the month of a date
  • Previous by thread: 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