• 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: Paul Berkowitz <email@hidden>
  • Date: Mon, 07 Sep 2009 18:09:58 -0700
  • Thread-topic: date/Snow Leopard changed

On 9/7/09 3:57 PM, "Nigel Garvey" <email@hidden>
wrote:

>> So you should be able to set all the components of a date at once with
>> no side effects until they're all set to the given values.
>
> 'Twas ever thus. The target values are fetched first and then applied in
> turn to the items on the left. Usually the items are separate entities,
> so it looks like parallel setting. But when you're setting interdependent
> properties of a date, the sequence often becomes apparent. To "cure"
> this, I imagine the AppleScript engineers would have to write a special
> process for setting dates when lists were used. Personally, I quite enjoy
> the current behaviour.  :)

I agree - it's part and parcel of what makes it possible to find the last
day of any month, for example, by getting the first day of the succeeding
month and subtracting one day. I forgot about that aspect when saying that
the list of modifications to a date can be presented in any order. I was
just trying to indicate that the local format order of mdy or dmy, etc. was
irrelevant, but I overstepped the mark. Thanks for the catch, Nigel.

I know that different people have a whole variety of preferences along the
scale of precision vs. convenience. Having AppleScript "guess" at imprecise
date and time strings was convenient - as long as you were doing scripts for
yourself and, at a stretch, most - but never all - people in your
localization. It's not really that hard to learn how to do things more
precisely so they'll work the same way more widely. Except, of course, where
old scripts break in the new OS. There are always going to be problems like
this when changes are made.

--
Paul Berkowitz


 _______________________________________________
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

References: 
 >Re: date/Snow Leopard changed (From: "Nigel Garvey" <email@hidden>)

  • Prev by Date: Re: strange regexp
  • Next by Date: 10.6 Problem Passing "Finder" variables to subroutines
  • Previous by thread: Re: date/Snow Leopard changed
  • Next by thread: Re: date/Snow Leopard changed
  • Index(es):
    • Date
    • Thread