Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Days and hours



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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden

References: 
 >Re: Days and hours (From: "Nigel Garvey" <email@hidden>)
 >Re: Days and hours (From: "Mark J. Reed" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.