Tim Mansour wrote: > osascript <<-ENDSCRIPT > set title to "${TM_SELECTED_TEXT}" [...] Incidentally, if you use "APPLESCRIPT" as a token, you'll get syntax highlighting for applescript inside your here-document. -Jacob