An update on this post. I got a response from another website [https://www.macscripter.net/t/index-of-an-item-in-an-applescript-list/74205). The results from the "repeat with -- in" is a reference to the item not the actual item. Hence, the code should be getPositionOfItemInList(contents of selectedNAS, NAS_Names)
Topic:
App & System Services
SubTopic:
Core OS
Tags: