Improving on the Text Reference Macro - Test if Clb is empty Macro (v11.0.4)

Yes, because if you tell an application to do something and it can't then it should return an error, making your computer beep at you.

If you don't want that then you'll need a different approach. The more usual way of doing what you want is to see if something can be Copied and proceed accordingly. For many apps you can do that by checking whether the Copy menu item is enabled:

WriteClb7 Title and Path of Text File ⇢ Clb with or wout TEXT (inverted) DEMO Menu Check.kmmacros (29.9 KB)

This version goes back to using a Named Clipboard, to keep any formatting in the text you Copy.