[TxMt] A TextMate command to open an arbitrary PDF file
daz-macromates at zzzurn.com
Tue Nov 20 16:09:22 UTC 2007
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!
View this message in context: http://www.nabble.com/Re%3A-A-TextMate-command-to-open-an-arbitrary-PDF-file-tf4816253.html#a13859920
Sent from the textmate users mailing list archive at Nabble.com.
More information about the textmate