Formatting text display object

Is there a quicker way to tag a word in a text display to make it bold rather than clicking on the left side of the WORD, typiing <b> and then clicking on the right side of the WORD and typing </b> OR selecting the WORD and changing the font for that WORD to a bold version of the font? I tried a procedure to run after copying the WORD to the clipboard, which does not work:

   let lpaste = "<b>"+clipboard()+"</B>"
   clipboard()=lpaste

(then trying to paste lpaste somewhere…also does not work)

I wrote a simpler version of your procedure:

clipboard() = "<b>"+clipboard()+"</b>"

It worked fine. However, I think the problem you are running into is that there is no way to run a procedure in graphics mode. What I had to do was:

  • select the text and copy it
  • switch to a different window
  • run the procedure
  • switch back to the form in graphics mode
  • select the text again (if it’s not already selected)
  • paste the new text

With all those steps, probably not worth doing.

You might try looking into a program like Keyboard Maestro. I’m not sure if KM could do it, but I suspect it might be possible.