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?
Todd Ditchendorf
Scandalous Software - Mac XML Developer Tools http://scan.dalo.us
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?
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).
I'll check this out... sounds very promising. thanks!
If you don't know the path to the frontmost document, then why are you trying to select a given line in it?
I do.
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?
-- Kevin Ballard http://kevin.sb.org kevin@sb.org http://www.tildesoft.com
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Kevin: thanks for the heads up.
All: This description of the TextMate URL scheme will achieve what I wanted:
http://www.macromates.com/textmate/manual/using_the_txmt_url_scheme.html
Todd Ditchendorf
Scandalous Software - Mac XML Developer Tools http://scan.dalo.us
On Jan 23, 2007, at 10:33 AM, Kevin Ballard wrote:
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?
-- Kevin Ballard http://kevin.sb.org kevin@sb.org http://www.tildesoft.com
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate