simplest cross-browser check if protocol handler is registered

There is this old tricks that it always never fails me. The core functionality that you need is setTimeout. I will tell you in detail: setTimeout(function() { window.location = “http://itunes.com/app/yourapplocation”; }, 200); // once you do the custom-uri, it should properly execute the handler, otherwise, the settimeout that you set before will kick in window.location … Read more

Open Internet Explorer from Chrome using a protocol handler (ie:url)

Create a Protocol Handler save this script as internet-explorer-protocol-handler.reg: Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Classes\ie] “URL Protocol”=”\”\”” @=”\”URL:IE Protocol\”” [HKEY_CURRENT_USER\Software\Classes\ie\DefaultIcon] @=”\”explorer.exe,1\”” [HKEY_CURRENT_USER\Software\Classes\ie\shell] [HKEY_CURRENT_USER\Software\Classes\ie\shell\open] [HKEY_CURRENT_USER\Software\Classes\ie\shell\open\command] @=”cmd /k set myvar=%1 & call set myvar=%%myvar:ie:=%% & call \”C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe\” %%myvar%% & exit /B” Then run the script to install the keys in your registry. It will … Read more

How to map a custom protocol to an application on the Mac?

I’ve not had occasion to use it, but some time ago I bookmarked OS X URL handler to open links to local files which is exactly what you’re looking for. The important part of the linked procedure is adding an appropriate CFBundleURLTypes to your application’s Info.plist that describes the scheme. The example given there looks … Read more

How do I create my own URL protocol? (e.g. so://…) [closed]

The portion with the HTTP://,FTP://, etc are called URI Schemes You can register your own through the registry. HKEY_CLASSES_ROOT/ your-protocol-name/ (Default) “URL:your-protocol-name Protocol” URL Protocol “” shell/ open/ command/ (Default) PathToExecutable Sources: https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml, http://msdn.microsoft.com/en-us/library/aa767914(v=vs.85).aspx