[TxMt] How to open Textmate from external program with specific caret position?

Eric Hsu erichsu at math.sfsu.edu
Sat Jan 29 06:27:06 UTC 2005


At 6:40 AM +0100 1/29/05, Allan Odgaard wrote:
>>[...] I want it to open in TextMate, place the caret on a specific 
>>line and scroll down to that line, just like for example xcode does 
>>when double clicking in the error list.
>>Is there some way to accomplish this (preferably from Cocoa)?
>
>Xcode is using a subset of Metro Works external editor API which 
>TextMate supports: 
>http://codingmonkeys.de/techpubs/externaleditor/pbxexternaleditor.html
>
>Basically you need to send it an 'odoc' apple event with an extra 
>keyAEPosition parameter.
>
>An example of sending the event from Cocoa (but w/o this extra 
>parameter) can be found here: http://gusmueller.com/odb/

Is there some standard way to send these kinds of events from the shell?

- Eric
-- 
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu at math.sfsu.edu
http://math.sfsu.edu/hsu



More information about the textmate mailing list