[TxMt] Applescript - Getting content of frontmost document
Allan Odgaard
throw-away-1 at macromates.com
Mon Sep 18 02:20:53 UTC 2006
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.
More information about the textmate
mailing list