IDEA:”open in..” bookmarklet for mobile Safari

This came up from a Quora question which I answered here:-

http://b.qr.ae/exTiNf

Basically each iOS app has a unique ID that can be called via a URL eg:-

myapp://www.jasonified.com

When you call this in mobile Safari or via a URL call within an app/JavaScript the app in question is launched an the URL/querystring passed to it.

So I was thinking a JavaScript bookmarklet in Mobile Safari could produce some “Open in..” functionality by displaying a modal dialog to show a list of apps to open the URL in and when selected open that app with the current URL.

You would need to know the appIDs to do this but in theory it should work.

Thoughts?