I get an error message when trying to use commands involving strings. Why?

You may need to convert the string from styled text to plain text. Here is an example command that converts the styled text in oldvar to plain text and stores it in newvar:
set {text:newvar} to (oldvar as string)

Scroll to Top