All,
I've been playing with Textmate but haven't been able to do something very simple (in my view) - write an Applescript that lets me get the content of the frontmost Textmate document. This must be possible, right?
If you could send me a pointer or a short example, that would be much appreciated.
Thanks,
Thomaz
On 18/9/2006, at 4:16, Edison Thomaz wrote:
I've been playing with Textmate but haven't been able to do something very simple (in my view) - write an Applescript that lets me get the content of the frontmost Textmate document. This must be possible, right?
Actually not -- you can only get the path of the frontmost document, e.g.:
% osascript -e 'tell app "TextMate" to return path of document 1'
Normally you would create a command with “entire document” set as input and run that from within TextMate.