bittersweetryan
bittersweetryan

Reputation: 3443

Is there a way to open SublimeText 2 From Other Applications

I loved the ability to open a file in textmate from other applications using the txmt://open/?url=file:// command. I can't seem to find anything similar for SublimeText 2, does anybody know how I can do this?

Upvotes: 3

Views: 419

Answers (2)

Liam Cain
Liam Cain

Reputation: 13373

subl-handler is an app that maps textmate's txmt url protocol to Sublime Text. I haven't tried it myself, but looks like it's what you're looking for.

Available here: https://github.com/hiddenbek/subl-handler

(Side note: for windows users, there's this: https://bitbucket.org/sublimator/sublimeprotocol/src/)

Upvotes: 2

veight
veight

Reputation: 2167

Which operating system are you using?

If you are on the Windows OS this is easy enough to do by registering the file extension with the Windows Shell and then using the ShellExecute WIN32 API.

Upvotes: 0

Related Questions