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?