• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Days and hours
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Days and hours


  • Subject: Re: Days and hours
  • From: "Nigel Garvey" <email@hidden>
  • Date: Thu, 20 Oct 2005 14:03:00 +0100

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:

This email sent to email@hidden

  • Prev by Date: Re: Days and hours
  • Next by Date: Re: About This Mac
  • Previous by thread: Re: Days and hours
  • Next by thread: Re: Days and hours
  • Index(es):
    • Date
    • Thread