• 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: date/Snow Leopard changed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: date/Snow Leopard changed


  • Subject: Re: date/Snow Leopard changed
  • From: "Nigel Garvey" <email@hidden>
  • Date: Mon, 7 Sep 2009 11:52:51 +0100

Paul Berkowitz wrote on Sun, 06 Sep 2009 23:13:47 -0700:

>On 9/6/09 6:32 PM, "email@hidden" <email@hidden> wrote:
>
>> More longwinded than the Hypertalk example but should get the job done?
>
>Slightly shorter-winded, perhaps:
>
>set TestDate to current date
>tell TestDate to set {its year, its month, its day, its hours, its minutes,
>its seconds} to {2000, 1, 2, 3, 4, 5}
>
>It makes no difference what order you put the lists, as long as the value
>you want corresponds to the same position in the property list, of course.

It _does_ matter what order you set the day, month, and year, especially
if you're starting with 'current date'. It's best to start with a known
"safe" date (low day number and/or 31-day month) and set the year, month,
and day in that order.

  set TestDate to date "1/1/1"
  tell TestDate to set {its year, its month, its day, its hours, its
minutes, its seconds} to {2000, 1, 2, 3, 4, 5}

NG

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: date/Snow Leopard changed
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: Paste Text Into Mail
  • Next by Date: Re: new (I think) time question
  • Previous by thread: Re: date/Snow Leopard changed
  • Next by thread: Re: date/Snow Leopard changed
  • Index(es):
    • Date
    • Thread