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: 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