read last 2 characters from string
Tried it with the "set xx to character 10 thru -1 of xx as string" but only get off course the character of position 10.
Want to highlight a helpful answer? Upvote!
Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >
Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >
set xx to "test string"
set xx to text -2 through -1 of xx
--sets xx to the text string "ng"
set xx to "test string"
set xx to characters -2 through -1 of xx
--sets xx to the list {"n", "g"}
read last 2 characters from string