Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to launch an application from a link in a webpage on mac

I am trying to have an application open when a link is clicked on in a webpage. Lets say if I clicked the link that says iTunes it would open iTunes. I am not sure if this is similar but if you go to an album link for iTunes that opens in the web browser, it will open iTunes to that page. Remember this is for mac. Also, the other tutorials that I have tried did not work. Other tutorials used JavaScript so I am guessing that I will need to use this as well.

like image 403
nmacbook.nick Avatar asked Jan 19 '13 13:01

nmacbook.nick


People also ask

How do you click an embedded link on a Mac?

All replies. Two-finger tap, or control-click on the link, and from the resultant secondary menu, choose Open With > Safari. If you already have a single or multiple tabs open in Safari, another tab will be opened with the link from the email.

How do I make an application open on Mac?

On your Mac, choose Apple menu > System Preferences, then click Users & Groups . Select your user account, then click Login Items at the top of the window. Do any of the following: Add a login item: Click the Add button below the list of items, select a document, folder, app, server or other item, then click Add.


1 Answers

You can not only open an application. you e.g. can tell an application that registered a protocol to do an action. You can tell iTunes to open an album with the itmss:// protocol. Instant messenger may have registered e.g. aim://, skype:// or similar so that you can directly open a chat window. You can create a link with mailto:[email protected] to tell the default mail application to start a new mail with this address. But you can not start the application directly by default.

If you have control over the system where the webpage ist opened, e.g. an in-house launching service or something like that. You could think of creating an protocol default handler for launching applications.

like image 169
t.niese Avatar answered Oct 27 '22 18:10

t.niese