This step by step explains how to create an URI protocol (a scheme) to directly edit a file in Sublime Text from browser (or from the terminal), and mostly from notifications of the PHP-Console extension.
Launch AppleScript and export the open_editor.scpt script as an Application (name it "Sublime Text URL Launcher").