[SVN] REQ: commands choosing output

Allan Odgaard allan at macromates.com
Sun Feb 20 15:44:22 UTC 2005


On Feb 20, 2005, at 16:27, Kevin Ballard wrote:

> 1) Much cleaner in the script than either applescript or the input 
> stream parsing

Why's that? We could also use an UUID for AS, so it would (probably) be 
something like:
  osascript -e 'tell app "TextMate" to change output for "'$TM_CMD_ID'" 
to HTML'

> 3) No chance of screwing up binary data with the script since we're 
> not affecting the data passed back

For the binary screw-up to happened we'd need to:
  1) dump a binary file as output
  2) use the interpret stream output option
  3) not issue a disable-escape-parsing sequence before dumping the file
  4) having this binary file actually contain something that follows the 
pattern of \e[<command>:<argument>]

Probably the chance of this is close to nil.

> 4) Don't need to add anything to the output options - this should work 
> no matter what default output option is selected

This I like! :)

> What do you think?

I'll need to have the idea rest in my brain for a little longer ;)




More information about the textmate-dev mailing list