Page 1 of 1

Clipboard Tool Parameter

Posted: Mon May 12, 2003 8:23 am
by trids
I would like to be able to pass the text-contents of the clipboard to a tool. EG: I might copy some text to clipboard, that is the path_and_filename of a file .. or press Alt+Ctl+F (my shortcut to copy the current filename to the clipboard). Either way, and assuming the new parameter is called $Cliptext, I then launch a tool that opens Windows Explorer in the right place..
explorer.exe /n, /e, /select, "$Cliptext"

My current workaround tool is a little clunky, but at least it works..
explorer.exe /n, /e, /select, "$Prompt(Press CTRL-V)"

And it saves my having to define 2 tools that do the same thing:
explorer.exe /n, /e, /select, "$File"
explorer.exe /n, /e, /select, "$Sel"


Finally, a new $Cliptext parameter would allow me use a TextPad tool when the clipboard is populated outside of TextPad, without first having to paste it into a dummy TextPad-document and use the $Sel parameter.

Posted: Wed Sep 17, 2003 4:00 pm
by altan
Sounds very cool 8)