The other replies will work, but they don't quite answer your question if I understand you correctly. My answer is going to be more OS specific than theirs but it--to me--is a better solution.
...