org-protocol.el – Mac OS X setup doesn’t work anymore according to Issue #3 · neil-smithline-elisp/EmacsClient.app.
- Launch the Script Editor application and create a new document
- Copy-and-paste the following code into the new document
- Run where emacsclientin cli to get the path toemacsclienton your system
- Change “/path/to/your/emacsclient” to the result of where emacsclient
- Save it in Application (not the default Script) File Format as
    org-protocol.app
on open location this_URL
	do shell script "/path/to/your/emacsclient \"" & this_URL & "\""
	tell application "Emacs" to activate
end open location- Navigate to the application (i.e., org-protocol.app) in the Finder, then right-click on it and selectShow Package Contents. Now go into theContentsfolder and openInfo.plist
- Add the following code to the file, making sure to keep all existing key/string pairs intact:
<key>CFBundleURLTypes</key>
<array>
  <dict>
    <key>CFBundleURLName</key>
    <string>org-protocol handler</string>
    <key>CFBundleURLSchemes</key>
    <array>
      <string>org-protocol</string>
    </array>
  </dict>
</array>To register the protocol, just click on the org-protocol.app.
See http://orgmode.org/worg/org-contrib/org-protocol.html#orgheadline8
I use graphical Emacs and start Emacs server from there, however after clicking some org-protocol link, Emacs doesn’t activate. I don’t know the cause. If you encounter the same issue AND don’t like it, you can try this instead
on open location this_URL
   do shell script "/usr/local/bin/emacsclient \"" & this_URL & "\" && open -a Emacs"
end open locationOn web browser, besides bookmarklets, you can also use User Script, for example, ./org-protocol.user.js binds two keys to Org: store-link and Org: capture.