Is there any way to make textmate save, without a dialog, the frontmost document, from a command?
I tried `osascript -e 'tell application "TextMate" to save document 1'`, but I got a file dialog. Thanks for your assistance.
Jeremy
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).