I wonder wether it's possible to run an external command/script with the content of the current editor. Let me clarify by telling what I acutally want to do:
– I have an xml document open "page.xml"
– I want to press some shortcut, e.g. F12
– A script is started, that:
1. reads the text of page.xml into a variable str
2. str = escape(str) //url escape the string
hope you get what i mean..
do you have any idea how this could be achieved (use it on a daily basis with textmate and a ruby script)