Re: ListWillNotEmpty
Re: ListWillNotEmpty
- Subject: Re: ListWillNotEmpty
- From: 2551 <email@hidden>
- Date: Fri, 08 Nov 2013 19:05:58 +0700
I have the following:
set displayList to {} set displayList to the mainList set beginning of displayList to "----"
Each time I run the script the "----" keeps getting added cumulatively to displayList even though displayList should be emptied out. Meanwhile mainList occurs only once. Any idea why this is happening... a bug or is it the Tao of AS?
I don’t think its possible to produce that result with the code you posted, but you could if somewhere else you have set mainList to displayList and declared mainList as a property. For example, I can reproduce your problem like this:
property mainList : {}
set displayList to {} set displayList to the mainList set beginning of displayList to "----" set mainList to displayList mainList
|
_______________________________________________
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