[TxMt] Create command that deletes a file [first replacing the extension]?

Marius Hofert m_hofert at web.de
Sat Jun 12 19:02:27 UTC 2010


Dear TextMate experts,

I have a file with a certain extension. In the folder where this file is located, there is a file with the same name but extension .pdf. How do I create a command that removes the .pdf?
My first trial was this (bundle editor):
1) Save: Current File
2) Command(s): rm "$TM_FILENAME/Rd/pdf"
3) Input: None
4) Output: Discard
So I guess 2) is the problem. How can I replace the file extension by .pdf?

Cheers,

Marius


More information about the textmate mailing list