[TxMt] open document in another app

Oliver Taylor oliver at ollieman.net
Thu Feb 2 00:56:27 UTC 2006


I'm trying to write a command that will open the current document in  
an external app, here is what I've got:

open -a Final\ Draft\ 7 $TM_FILEPATH

The problem I'm having is that the FilePath (as constructed by  
TextMate) does not insert "\" before a space, thus the command in  
question is unable to find documents with spaces in the filenames to  
pass on to the external app.

Is there another way to do it? What am I missing?



More information about the textmate mailing list