• 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: Variable keeps changing with date manipulation in Snow Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Variable keeps changing with date manipulation in Snow Leopard


  • Subject: Re: Variable keeps changing with date manipulation in Snow Leopard
  • From: Deivy Petrescu <email@hidden>
  • Date: Sun, 13 Sep 2009 10:23:07 -0400


On Sep 13, 2009, at 7:18 AM, Nigel Garvey wrote:

"email@hidden" wrote on Sat, 12 Sep 2009 22:05:40 -0700:

Are you kidding?  On top of everything else dates have now become
references? And the references are invisible to Script editor and
Script Debugger?

No. Dates are, and have always been, compound objects like lists and
records. If you have a variable containing a date, and you 'set' another
variable to that variable, the same date object is shared by both
variables. If you change the date's properties though one variable,
you'll see the changes when you look at the date through the other. Using
'copy' instead sets the second variable to a duplicate object that's
independent of the original.


Seriously, I don't think any part of AppleScript has ever been more
thoroughly hosed by an upgrade. Even the jump to OSX was less painful.

I must say I've seen nothing in the parts of this thread I've been able
to follow to suggest that there's anything at all wrong with dates in SL.
They just seem to be less forgiving. If you have scripts that were wrong
before, they no longer work.


NG




Ed,
Nigel is absolutely right.
First, the problem is not exclusive to SL. It happens in Leopard as well.
I would not be surprised if it happens in Mac OS 7....



Also, Snow Leopard other than requiring the year to get a date, did not go backwards with respect to dates.
My complaint is it did not go forward enough.
It is past the date that dates should have an universal setting that would then be converted to local dates.
There is, other than this lack of step forward, nothing intrinsically wrong with SL dates.





-

Deivy Petrescu
email@hidden



_______________________________________________
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: Variable keeps changing with date manipulation in Snow Leopard (From: "Nigel Garvey" <email@hidden>)

  • Prev by Date: Re: Variable keeps changing with date manipulation in Snow Leopard
  • Next by Date: Re: Variable keeps changing with date manipulation in Snow Leopard
  • Previous by thread: Re: Variable keeps changing with date manipulation in Snow Leopard
  • Next by thread: Re: Variable keeps changing with date manipulation in Snow Leopard
  • Index(es):
    • Date
    • Thread