[TxMt] programatically save document in TM?

Allan Odgaard throw-away-1 at macromates.com
Fri Oct 27 23:16:24 UTC 2006


On 27. Oct 2006, at 16:13, Jeremy Bernstein wrote:

> Is there any way to make textmate save, without a dialog, the  
> frontmost document, from a command?

What do you mean by “without a dialog”, what if the document is  
untitled?

You can set the command to have the current file saved before  
execution, and you can also use GUI scripting -- but a dialog will  
appear if the document is untitled (which you could however test for).






More information about the textmate mailing list