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

  • Follow-Ups:
    • Re: Variable keeps changing with date manipulation in Snow Leopard
      • From: "email@hidden" <email@hidden>
    • Re: Variable keeps changing with date manipulation in Snow Leopard
      • From: Deivy Petrescu <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