Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does the Apple iTunes web site launch the iTunes application on my computer when I click the blue "Launch iTunes" button?

Tags:

itunes

This is new to me as a desktop developer.

If I could figure out how this is accomplished, it may be relevant to some research I'm doing, specifically how to migrate thick desktop apps to a web implementation.

The more forms-oriented and lightweight graphics I can figure out, but heavyweight 3D graphics still requires some form of non-browser application.

As nearly as I can determine, iTunes installs some form of new protocol handler on my machine, corresponding to "itms", in place of "http".

This is cool and mysterious to me, almost magical. Any help or suggestions for additional reading materials and/or resources would be very welcome.

like image 945
kmontgom Avatar asked Nov 22 '09 22:11

kmontgom


People also ask

Can you open iTunes in browser?

If you subscribe to Apple Music, you can browse and play music from Apple Music and your music library on the web and in apps.

How do I view iTunes apps on my PC?

Follow these simple steps to do it. Step 1: Open the iTunes app on your computer and then connect the iPhone to the computer using USB cables. Step 2: In iTunes, click on “View” and then select “Show Sidebar.” Step 3: When the sidebar appears, find the device and right-click on it.

Can I see my iPhone apps on my computer?

Open iTunes > Connect your iPhone to your computer using the USB cable. Click the device icon in iTunes > Tap on File Sharing from the left sidebar. Choose one app and its file > Click Save button to computer, or add from computer to iPhone.

Where is the app library in iTunes?

Use the App Library to find and open your appsFrom your Home Screen, swipe your finger to the left until you see the App Library. Your apps are sorted in the App Library by category.


3 Answers

You can register "protocol handlers" with some browsers. I think there's a place in the operating system where you can regsiter your own.

See

  • http://msdn.microsoft.com/en-us/library/dd588696(office.11).aspx
  • http://blog.ryaneby.com/archives/firefox-protocol-handlers/

Creating new ones in firefox: http://ajaxian.com/archives/creating-custom-protocol-handlers-with-html-5-and-firefox

In safari: http://discussions.apple.com/thread.jspa?threadID=1280989

Special "mobile protocol handlers" are used extensively in the iPhone/iPod to launch the phone dialler, email sending, google maps and so on... http://www.iphonedevfaq.com/index.php?title=Protocols

Here's an example of how to reconfigure the mailto: protocol handler to trigger gmail rather than an external mail client: http://lifehacker.com/392287/set-firefox-3-to-launch-gmail-for-mailto-links

like image 153
Dafydd Rees Avatar answered Oct 07 '22 01:10

Dafydd Rees


Simple.

<a href="itunes:///">Open iTunes</a>

Most apps now-a-days have "Custom URL Schemes" For Example - Coda (http://panic.com/coda) you can add snippets of code via:

<a href="codaclips:///<<**Title:NAME**>>blabla">Add Clip</a>
like image 34
tarnfeld Avatar answered Oct 06 '22 23:10

tarnfeld


In Windows this is called a Pluggable Protocol Handler. This article on CodeProject shows how to implement a pluggable protocol handler on Windows.

Note, this is more involved then just registering a new protocol in the registry, such as myprotocol:// and having it start a specific exe whenever a myprotocol:// anchor is clicked.

It actually allows your application to receive and process the request and to create response data dynamically. If your protocol will also be called programmatically this is usually important.

This may be overkill for your situation however it is handy to know about.

like image 21
Ash Avatar answered Oct 06 '22 23:10

Ash