I don't think there's a built in way to do this, but you can make yourself a new command easily.

I'd do this: on your project, click the 'I' button on the shelf. Add a project variable with the path to the the file you want to run. Call it, say, PROJECT_EXECUTABLE.

Then copy/paste the Run Script (PyMate) command and make a new one. Replace $TM_FILEPATH with $PROJECT_EXECUTABLE.

Just a suggestion.

On 2/25/07, Jay Kyburz <jay@jaykyburz.com> wrote:
Hello All,

Great to see such an active community for a text editor!

I've been using TM for a largish python project. I have quite a few
source files now and using the project draw and tabs to navigate
between them.

Anybody know how I can mark one file in my project as the file to run
using the Run Script Command.

Would I need to modify the Run Script Command for this to work?.
I've looked at it in the bundle editor but it makes no sense to me. I
tried hacking some changes in so that it would run a specific file
rather than $TM_FILEPATH but without luck.

Any help much appreciated.

Jay.

______________________________________________________________________
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



--
Stephen Hansen
Development
Advanced Prepress Technology

shansen@advpubtech.com
(818) 748-9282