Web Dev Notes

Blog about web development by Robert Dawson

Open selected text in TextMate with Automator

Like most developers with a Mac I presume, I love TextMate! One of the things I have often wanted to do is to select text in an application and paste it into TextMate. Thanks to Aaron at 9thport.net, here is a dead-simple solution!


  1. Open Automator.
  2. Make a new Service script.
  3. Add Run Shell Script.
  4. Write "cat | mate" and save as "Launch TextMate".
  5. Open System Preferences.
  6. Go to Keyboard > Services.
  7. Check Launch TextMate and give it a shortcut, like F6.
  8. Go to an application with text, select it, and hit F6!


Get wget on a Mac

The Mac doesn't come with wget, but you can easily make an alias called "wget".


  1. Open Terminal.
  2. Type "cd ~/" to make sure you're in your user directory.
  3. Type "echo 'alias wget="curl -O"' >> ~/.bash_profile" to create a persistent alias.
  4. Restart Terminal.
  5. Go to a directory where you want to download a file.
  6. Type "wget http://www.myurl.com/myfile.pdf" and begin downloading!