• 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: has <email@hidden>
  • Date: Sun, 13 Sep 2009 17:05:47 +0100

Mark J. Reed wrote:

I don't have access to SL to test, but I suspect that dates are
objects now, handled by reference, and you need to use "copy" instead
of "set" on the calls to MakeTimesRelativeToDate if you want to get
different dates instead of just a whole bunch of variables pointing to
DateVar.


AppleScript's dates have always been mutable objects. As you say, if you don't want to modify the original object, use 'copy' to make a fresh object and work on that.

has
--
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net

_______________________________________________
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
  • 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: Help with AS problem please.
  • Index(es):
    • Date
    • Thread