"SELECTION" TITLE PIN "TEXT" MENU "Primary" MENU # with selection # check spelling "print" xv_get_sel 1 | lpr "edit" xv_get_sel 1 >/tmp/RENAME;teddelete /tmp/RENAME # delete file afterwards "spell check" xv_get_sel 1|spell>/tmp/file;teddelete /tmp/file; "Primary" END PIN "Clipboard" MENU # with selection # check spelling "print" xv_get_sel 3 | lpr "edit" xv_get_sel 3 >/tmp/file;textedit /tmp/file "spell check" xv_get_sel 3|spell>/tmp/file;textedit /tmp/file; "Clipboard" END PIN "TEXT" END PIN # "File" MENU "Primary" MENU "Edit" ted `xv_get_sel 1` "ls" ls -l `xv_get_sel 1` >/tmp/file.$$;teddelete /tmp/file.$$ "wc" wc `xv_get_sel 1` >/tmp/file.$$;teddelete /tmp/file.$$ "print" lpr `xv_get_sel 1` "enscript" enscript -G `xv_get_sel 1` "Check Spelling" spell `xv_get_sel 1` >/tmp/file.$$;teddelete /tmp/file.$$ "Primary" END PIN "Clipboard" MENU "Edit" ted `xv_get_sel 3` "ls" ls -l `xv_get_sel 3` >/tmp/file.$$;teddelete /tmp/file.$$ "wc" wc `xv_get_sel 3` >/tmp/file.$$;teddelete /tmp/file.$$ "print" lpr `xv_get_sel 3` "enscript" enscript -G `xv_get_sel 3` "Check Spelling" spell `xv_get_sel 3` >/tmp/file.$$;teddelete /tmp/file.$$ "Clipboard" END PIN "File" END PIN "Keyboard Focus" MENU "Toggle" FLIPFOCUS "Keyboard Focus" END PIN "Spell Check from Selection" MENU "Primary" select-spell 1 # "Secondary" select-spell 2 "Clipboard" select-spell 3 "Filename(s)" select-spell f "Spell Check from Selection" END PIN