in reply to Post file to hard disk

If you want to do it in a programatic fashion, as opposed to "command > file" redirection, you can open the file and then select it.