Re: AppleScript script unable to respond to a script statement correctly


Shane Stanley
 

On 25 Jun 2018, at 12:48 am, Ilya Shebalin <iljashebalin2@gmail.com> wrote:

Could I kindly ask you to elaborate a bit?
Let's say in one loop itemRef contains a reference to item 3 of RecList. If the loop before called "set RecList to every record of RecList", and item 2 of RecList was not a record, then what was item 4 is now going to be item 3.

You can change the contents of items in a list while looping, but you generally shouldn't do anything that might disturb the indexing.

--
Shane Stanley <sstanley@myriad-com.com.au>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>

Join applescript@apple-dev.groups.io to automatically receive all group messages.