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