Sent this earlier from the wrong address, so it bounced…

On Feb 9, 2010, at 3:07 PM, Floodo1 wrote:

> ACTUAL QUESTION: How do I change the default action for these file
> types? (I'd like to change the action for .command as well as .sh
> files)

Patrick'’s advice is correct, but keep in mind that the ““Run in Terminal”” 
action applies to files in general, not just particular types. If you move it 
up the list, I think it will become the default for Folders, PDFs, etc.

If this isn'’t what you want, I believe you could get the best of both worlds 
by hacking the terminal plug-in’s Info.plist file and replacing the 
““directTypes”” entry for that action with ““directFileTypes”. It accepts file 
extensions, so you could specify “command” and “sh” (and maybe “py”, “php”, 
“rb”, etc. depending on your needs). Actually, the file types might narrow 
directTypes so maybe you can leave them both in there.

Anyway, then you can move ““Run in Terminal”” up as high as you want and not 
worry about it showing up when it makes no sense.

-- 
Rob McBroom
<http://www.skurfer.com/>

Reply via email to