Thanks. I finally got it to work but I had to use the "universal" "set variable to..." command instead of the Safari and Chrome-specific "set variable to..." command.
FWIW I did notice some oddities as far as timing goes. I have my macro set to paste the web page title in the email subject line, then tab down to the body and past the web page url. I had to put a half-second pause after the tab to get it to work, but while experimenting with the timing, if the timing was too short, it would past the url twice.
Anyway, thanks for the help and here's the script for anyone else who's interested: