I was trying to create a variable named “rd” in both ‘Script Editor’ & ‘Script Debugger’.
It failed in both with error “Expected expression but found “rd”.”
Is “rd” a reserved word or command or property in AppleScript?
I was trying to create a variable named “rd” in both ‘Script Editor’ & ‘Script Debugger’.
It failed in both with error “Expected expression but found “rd”.”
Is “rd” a reserved word or command or property in AppleScript?
Hi Robert. Yes. “st”, “nd”, “rd”, and “th” are reserved ordinal suffixes that can be used with index numbers if you like that style. eg.:
item 3 of myList
3rd item of myList
third item of myList
The ordinal full words range from “first” to “tenth”.
Thanks, I completely forgot about that. I’ve never used them myself.