Kod:
on chat:
set {_f} to the first character of message
if length of message is not 1:
set {_s} to the last (length of message - 1) characters of message
else:
set {_s} to ""
if message contains "!" or "?" or ":D" or ":)" or ",":
set message to "%convert {_f} to uppercase%%{_s}%"
else:
set message to "%convert {_f} to uppercase%%{_s}%."
stop