"Mark J. Reed" wrote on Thu, 20 Oct 2005 09:54:42 -0400:
>On 10/20/05, Emile Schwarz <email@hidden> wrote:
>>
>> -- b. HH:MM:SS
>> set hours of myDate to 11
>> set minutes of myDate to 45
>> set seconds of myDate to 0
>
>
>
>The AppleScript date type has no properties named "hours", "minutes", or
>"seconds". It has, instead, a single property named time which holds the
>number of seconds since midnight on the day given by the rest of the
>properties.
As from Tiger (AppleScript 1.10), dates _do_ have 'hours', 'minutes', and
'seconds' properties. Emile's script works in Tiger, but throws a "Stack
overflow" error when run on earlier systems. It's safer to continue to
work with the 'time' property is you want maximum compatibility.
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