Open file in editor from browser on Mac

I would like to have a link that allows me to open the file in my favorite IDE. Textmate logs its own protocol txmt://open/?url=file://%file&line=%line , and it works fine, but I can’t find out how to open the file in another application (for example, NetBeans).

This probably requires registering some protocols and installing my browser - I would like to register it in Chrome.

+4
source share
2 answers

It seems difficult to register a system URL handler for the protocol you are creating. In your handler, you can send the file to your IDE. The handler can be based on Cocoa or applescript.

For Cocoa solution see this post . For an example in the real world of Cocoa, you can see bwana .

For applescript solution see this post or this post for a start.

+4
source

All Articles