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



Emile Schwarz wrote on Thu, 20 Oct 2005 10:51:16 +0200:

>Ho do you make the following working ?
>
> >   tell (current date) to set {day, year, its month, day, time, myDate} to
> > {1, 1968, May, 5, 20 * hours + 47 * minutes, it}

The variable 'mydate' ends up with the value of the date created.

  tell (current date) to set {day, year, its month, day, time, myDate} to
{1, 1968, May, 5, 20 * hours + 47 * minutes, it}
  display dialog (myDate as string)


'Current date' returns a date record, which is then told to reset its
various properties and finally to set a variable to itself. Kinky, but legal.

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



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.