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