Finding the Max in AppleScript [duplicate]
问题 This question already has answers here : How do I find the index of the maximum value in the list using Applescript? (2 answers) Closed 2 months ago . Basically I just need help with finding the max of this code. set numberList to {3, 4, 5, 6, 7, 8, 9, 10} set max to numberList repeat with x in numberList if x > max then set max to x end repeat display dialog max The error that I am getting is: "Can’t make {3, 4, 5, 6, 7, 8, 9, 10} into type number." number -1700 from {3, 4, 5, 6, 7, 8, 9, 10