Re: Variable keeps changing with date manipulation in Snow Leopard
Re: Variable keeps changing with date manipulation in Snow Leopard
- Subject: Re: Variable keeps changing with date manipulation in Snow Leopard
- From: "Nigel Garvey" <email@hidden>
- Date: Sun, 13 Sep 2009 12:18:06 +0100
"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
_______________________________________________
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