... and furthermore one could also think about to get something back from 
calling such a txmt:// url scheme.

Let's say one wants to know the current set grammar, then one could write a 
command like:

txmt://get?currentGrammar

In order to access the result, well, there're several chances to achieve that, 
but maybe a file hand-shake handling could be used, i.e. if TM2 receives such a 
"get url" it will process the request and writes the result into a temp file 
(either a fixed file path or a path which will be passed in txmt:// ) and if 
TM2 is ready it writes a second temp file (whose name is also fixed or will be 
constructed on basis on the passed path) with an empty content if the task was 
successful or, if not, with an error message. The command would simply wait 
after invoking the txmt:// get url for the second temp file and would process 
both files.


Cheers,
--Hans


_______________________________________________
textmate-dev mailing list
textmate-dev@lists.macromates.com
http://lists.macromates.com/listinfo/textmate-dev

Reply via email to