Getting Objects via a list of indexes created from BridgePlus

when using BridgePlus’s
indexesOfItems:inArray:inverting:

use scripting additions
use framework "Foundation"
use script "BridgePlus"
load framework

set listOrArray to {1, 2, 3, 2, 4, 2, 5, 3}
set theItem to {2, 4}
set theResult to current application's SMSForder's indexesOfItems:theItem inArray:listOrArray inverting:false
ASify from theResult
-->	{1, 3, 4, 5}

how can I now use this result in reverse?

IE:


set theResult to anotherListOrArray's objectsAtIndex:{1,3,4,5}

i realize it’s zero based so I’ve used the arrayByAddingInteger:inArray:
but still no go?

thanks

NSArray has an -objectsAtIndexes: method, which requires an NSIndexSet, and BridgePlus has an -indexSetWithArray: method to build one. So:

use scripting additions
use framework "Foundation"
use script "BridgePlus"
load framework

set theIndexSet to current application's SMSForder's indexSetWithArray:{1,3,4,5}
set theResult to anotherListOrArray's objectsAtIndexes:theIndexSet

Perfect thanks and easy.

I thought that function was
To set up just a straight indexed array.