How to convince Safari to be responsible for ttp:// URLs as well as http:// URLs

httpsafariurl

When somebody sends me a URL in an email, it is opened by Safari.

But often people make a mistake when copying the links (how I do not know) and the URL starts with ttp:// instead of http://.

Is there a way to teach Safari to feel responsible for ttp URLs as well and open them as http URLs?

Best Answer

You can tell Safari to open ttp URLs by adding this to ~/Library/Preferences/com.apple.LaunchServices.plist and restarting (logging out and back in isn't enough).

<dict>
    <key>LSHandlerRoleAll</key>
    <string>com.apple.Safari</string>
    <key>LSHandlerURLScheme</key>
    <string>ttp</string>
</dict>

I don't know how to redirect them to http URLs though.