Do you know the path to the document? if so, you could use a tm- file:// URI with the path to the document and specify the line there (I forget the syntax for that, but I'd imagine it's in the manual).
If you don't know the path to the frontmost document, then why are you trying to select a given line in it?
On Jan 23, 2007, at 1:24 PM, Todd Ditchendorf wrote:
Can anyone advise on how best to do interprocess communication with TextMate:
I'd like to be able to write a script (or whatever) that will tell TextMate to select a particular line in the front most document.
AppleScript would be the perfect fit here, but I get the feeling this isn't possible with TextMate's current scriptability. Am I wrong?
Any other ideas on how to achieve this effect?