Re: Days and hours
Re: Days and hours
- Subject: Re: Days and hours
- From: "Nigel Garvey" <email@hidden>
- Date: Fri, 21 Oct 2005 00:53:14 +0100
Mark J. Reed wrote on Thu, 20 Oct 2005 16:48:01 -0400:
>On 10/20/05, Nigel Garvey <email@hidden> wrote:
>>
>> As from Tiger (AppleScript 1.10), dates _do_ have 'hours', 'minutes', and
>> 'seconds' properties.
>
>
>Cool!
>
>But hm. Does that mean that the "minutes" property is also the "60"
>property?
Well. Notionally, they should be different things. One is the label for a
property of a date; the other's a constant with the value 60. ("Constant"
is something of a misnomer in AppleScript. Read "variable with a default
value that you're not supposed to change".) But I've just compiled
Emile's script on my Jaguar machine (where the properties don't exist)
and transfered it to the Tiger one, where it ran correctly first time,
implying that the constants and the properties use the same token.
>Applescript namespace stuff makes my head hurt. :)
The first few years are the worst. ;-) Seriously, once you vaguely
"understand" AppleScript, and don't expect to be able to do literal
translations from other languages, things aren't so bad. You can still
get caught out, but you know what sort of things may be causing the problems.
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