Does AS have "character classes"?

I want to check if a character is a letter that is not in a-zA-Z. Typically a diacritical letter such as é, ä or ç.

Is there a shorthand for this in Applescript? Similar to what regular expressions offer?

Get string id (UTF-16 character code).

set anID to id of "ä"
--> 228

Is there a shorthand for this in Applescript? Similar to what regular expressions offer?

You can compare these characters by the reserved word “diacriticals”.

ignoring diacriticals
	return ("a" = "ä")
	--> true
end ignoring
considering diacriticals
	return ("a" = "ä")
	--> false
end considering
1 Like