Re: Error resolving references
Re: Error resolving references
- Subject: Re: Error resolving references
- From: Bill Cheeseman <email@hidden>
- Date: Fri, 13 Sep 2002 17:58:34 -0400
Changing the first line to
set propList to {record1:{a:1, b:2}}
yields the same erroneous result. As do several other variations, like
making the nested subrecord into a named variable that is set first.
Changing the last two lines to
get contents of theRef
returns 1, as expected.
So it certainly does appear to be a bug.
on 02-09-13 5:31 PM, Chris Espinosa at email@hidden wrote:
>
On Friday, September 13, 2002, at 07:26 AM, John Delacour
>
<email@hidden> wrote:
>
>
>> property propList : {record1:{a:1, b:2}}
>
>>
>
>> set theRef to a reference to a of record1 of propList
>
>> set contents of theRef to 999
>
>>
>
>> return propList
>
>> --> {record1:999}
>
>>
>
>> Whoops! Where is my data!?!
>
>
>
>
>
> property propList : {record1:{a:1, b:2}}
>
> set varRef to a reference to a of (a reference to record1 of propList)
>
> set contents of varRef to 999
>
> propList
>
> --> {record1:{a:999, b:2}}
>
>
I'd have to say it's a bug. Steve's form should work correctly.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont -
http://members.valley.net/croquetvermont
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.