Ubuntu Forums Archive Viewer

Help: Drag highlighted text to custom panel icon

Archived thread 1277680 from Assistive Technology & Accessibility. Markdown source: Assistive_Technology_&_Accessibility/thread_1277680_Help_Drag_highlighted_text_to_custom_panel_icon.md

Original URL About this archive
#1

I'm using Ubuntu 9.04 and I thought it would be fun to have Festival speak text for me. I've configured a shortcut icon to perform the command, but I can't get the dragged text to run in the program. I'm dragging text from Firefox, but this could imaginably work for any application.

I have: echo "%u" | festival --tts

I know the "%u" doesn't work, so what would be the proper command to get dragged text to run in the command?

Thanks!

*Posted to accessibility because of the TTS part.

#2

Nevermind. I found out it's impossible to do because Ubuntu's drag and drop mechanism tries to build a file unless the text is dragged directly into an application. It throws up an error stating that the destination is not a directory if dropped on a desktop icon, and doesn't even try to drop the text on a panel icon.