• 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: "Nigel Garvey" <email@hidden>
  • Date: Thu, 15 Dec 2005 23:26:59 +0000

Loren Ryter wrote on Thu, 15 Dec 2005 10:14:30 -0500:

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

There are two different meanings for 'hours' and 'minutes'. As
AppleScript constants, they have the values 3600 and 60 respectively (the
number of seconds in an hour and in a minute) and have been around for
ages. As properties of date objects, they were only introduced with
Tiger. For general use at the moment (and probably in any case) it's
better to get the date's 'time' and perform the appropriate calculations.

NG

 _______________________________________________
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

  • Prev by Date: Re: Mailing with a do shell script
  • Next by Date: Re: Best practices for creating and comparing lists of text?
  • Previous by thread: Re: Set hours of date = stack overflow error on 10.3.9?
  • Next by thread: Loading Print Styles in Quark?
  • Index(es):
    • Date
    • Thread