On Jan 14, 2005, at 17:51, Chris Thomas wrote:
On Jan 14, 2005, at 8:17 AM, Sune Foldager wrote:
On 14. jan 2005, at 15:15, Jeroen van der Ham wrote:
For now you can do this by adding the folowing alias to your .bash_profile or whatever shell you use:
tm () { open -a TextMate.app "$*"; }
Yeah.. I don't think a command is really needed, when an alias like this will do just as well.
We need a command that will block waiting for the editor window to be closed. For BBEdit, that's the critical function that the 'bbedit' command line tool provides. I would assume that the 'see' tool can do it as well.
What if TextMate is already open? You'd possibly want to close the window created for that file, but not the application, which is how cvs and friends know you're done editing the log file when EDITOR is a console editor like vi.
The only workaround I can think of is something like this (untested, for sh-like shells)
function tm() { open -a TextMate.app "$*" echo -n press a key when done read }
But I don't know AppleScript, maybe something better may be accomplished with it. Anyone?
-- fxn