RE: "a reference to"
RE: "a reference to"
- Subject: RE: "a reference to"
- From: Ed Stockly <email@hidden>
- Date: Wed, 23 Jan 2008 07:26:29 -0800
Here's the example again:
set theList to {{foo:"foo"}} repeat with itemRef in theList
set recordRef to (contents of itemRef) set foo of recordRef to "ref" set localItem to (contents of recordRef) set foo of localItem to "local" return {itemRef, recordRef, localItem}
end repeat
--> {item 1 of {{foo:"ref"}}, {foo:"ref"}, {foo:"local"}}
I think this is a bug. I was mistaken when, in an earlier post, I said Script Debugger correctly indicated what was a reference and what was an object.
In the above example, SD does not indicate the variable recordRef a reference, but it clearly is. (SD does show itemRef is a reference).
ASLG indicates that contents can be used to dereference an object, but that doesn't seem to be the case, so I think that's a bug.
I suggest using "as item" rather than "contents of"
ES =
|
_______________________________________________
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