Test messages to see if they are only whitespace?

pcm@pcmxa.com's icon

Is it possible to test a textedit objects output to see if it only whitespace?

I have a patch that takes the outpur of a textedit and passes it to aka.speech. The patch uses the aka.speech object's bang on finish to reset the text box, but if the textedit is only whitespace, the bang never gets sent since nothing is spoken.

Max Patch
Copy patch and select New From Clipboard in Max.

Thanks

Ben Bracken's icon
Max Patch
Copy patch and select New From Clipboard in Max.

I don't have the aka stuff, but you can test for this with an attached pattr:

-Ben