what is useful this for?
On Nov 20, 2007 6:09 PM, dzurn daz-macromates@zzzurn.com wrote:
Rob McBroom wrote:
On Nov 15, 2007, at 11:04 AM, dzurn wrote:
The `open` command will handle local files just fine without the "file://" protocol specified. This worked for me to open `textmate.pdf`:
open "/Users/rob/Documents/Books/textmate"*
Note that the * wild-card is interpreted by the shell and the result is then passed to `open`. Your shell doesn't see any files named "file://something", so it bails. Basically, the * means nothing to the `open` command and "file://" means nothing to your shell. A plain old file path is something they both understand, which is why the above command works.
Rob McBroom
Odd. I couldn't get the open command to work without the file:// protocol. However, I found that the problem I was having was due to my encoding the spaces as "%20" in the open command. Once I got rid of the file:// and the %20 (replaced with spaces) then the * wildcard would work.
Thanks a lot! Darryl Zurn -- View this message in context: http://www.nabble.com/Re%3A-A-TextMate-command-to-open-an-arbitrary-PDF-file... Sent from the textmate users mailing list archive at Nabble.com.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate