[TxMt] Re: run script with args

Matt Neuburg matt at tidbits.com
Sat Oct 14 16:55:05 UTC 2006

On 10/14/06 9:13 AM, in article egr2b2$ilr$1 at sea.gmane.org, "Jacob Rus"
<jrus at hcs.harvard.edu> wrote:

> Matt Neuburg wrote:
>> Allan, if you're still reading, you might want to look at how the Perl
>> IDE/Debugger Affrus solves this problem:
>> <http://www.latenightsw.com/affrus/index.html>
>> A document is accompanied by metadata called "script arguments" which
>> determine the combinations of the perl command, switches, and arguments used
>> when running the script. A nice feature of this architecture is that you can
>> store many script arguments and then just switch among them as a way of
>> testing under different conditions. You might want to steal this idea for
>> TextMate... :) m.
> You could make something like this by attaching your own xattrs to the
> file, and then a 'run script' command that takes a look at those.
> There's a python module for modifying xattrs, though I doubt it works on
> all filesystems (IIRC allan had to work around some weird bugs on that
> front).
> In any case, this doesn't have to be something built into textmate.  The
> bundles are perfectly capable of taking care of it.

Cool idea, I'll look into it. Thx - m.

matt neuburg, phd = matt at tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!

More information about the textmate mailing list