set theList to {"123", "124", "abc", "125", "efgh", "126"}
set theNumbers to numbers of theList
return theNumbers
How can I get AppleScript to recognize which items of theList are numbers and assign a variable to those numbers?
The variable I have for theList is a place holder, the items it represents will be constantly changing.
Best Answer
You could try converting items in the list to the desired class, and ignore the ones that error: