Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

A quick way to open a URL in QuickTime Player Internet
I regularly listen to the Internet broadcast of a local radio station. To get it, I have to go their website, and then click on a button to open the online broadcast. It is in a Windows Media Player format. QuickTime Player opens and starts streaming.

Here is how I got to access it by just double-clicking an icon on the Desktop.

The 'obvious' way would be to drag the URL to the Desktop and create a .webloc file. But there were two problems with that.

The URL starts with mms:// and if one tries to open it directly from inside QuickTime Player, it does not recognize it. It does, however, open and play the stream if I use http:// instead.

However, the corresponding .webloc opens in Safari (or whatever other default browser is set), and doing Get Info and setting it to open with QuickTime Player has no effect.

Enter AppleScript. I created a very small script (you need to put in your correct URL):
tell Application "QuickTime Player"
  open URL "http://the.url.for.the.stream"
end tell
I saved this script as an application to my Desktop. Now I just have to double-click and QuickTime Player starts playing the stream.

[crarko adds: I haven't tested this one. I'm pretty sure you still need to have the Windows Media Components for QuickTime, aka Flip4Mac, installed to play Windows Media formats.]
    •    
  • Currently 2.09 / 5
  You rated: 5 / 5 (11 votes cast)
 
[11,750 views]  

A quick way to open a URL in QuickTime Player | 6 comments | Create New Account
Click here to return to the 'A quick way to open a URL in QuickTime Player' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A quick way to open a URL in QuickTime Player
Authored by: bglnelissen on Jun 07, '11 08:41:17AM
I would prefer a shell script. something like:
#!/bin/bash
open -a Quicktime "http://the.url.for.the.stream"

You can save shell scripts with the '.command' extension to execute them with a doubleclick

Edited on Jun 07, '11 08:42:00AM by bglnelissen


[ Reply to This | # ]
A quick way to open a URL in QuickTime Player
Authored by: leamanc on Jun 07, '11 05:04:12PM

That works, but you need to change Quicktime to "Quicktime Player".

As you have it written, the Terminal returns the error Unable to find application named 'Quicktime'.

[ Reply to This | # ]

A quick way to open a URL in QuickTime Player
Authored by: marook on Jun 07, '11 10:03:13AM

Nice, works well with the NASA HD stream that the NASA iPad app uses:

http://www.nasa.gov/multimedia/nasatv/NTV-Public-IPS.m3u8

---
/Marook



[ Reply to This | # ]
A quick way to open a URL in QuickTime Player
Authored by: Hal Itosis on Jun 07, '11 11:27:09AM
lsequeir: I saved this script as an application to my Desktop. Now I just have to double-click and QuickTime Player starts playing the stream.
bglnelissen: You can save shell scripts with the '.command' extension to execute them with a doubleclick.

Why are folks still enamored of double-clicking stuff in Finder? Stacks can conveniently house such items (to preclude us from having to go fish around in Finder windows). But, even with the aid of a stack (or the dock) to obviate finding the object... AppleScript applets are slower to execute than directly running the same code in the .scpt file itself (sans needing to "launch" the app). Similarly, double-clicking those '.command' files causes Terminal to launch, and (needlessly) open one of its windows.

A better approach is to use the Script Menu (along with FastScripts) or Spark. Spark can accommodate and run AppleScript code, while providing the ability of assigning it a keyboard shortcut. FastScripts does the same thing for items in the Script Menu... which itself can execute not just applescripts, but also shell scripts (bash, perl, etc).

-HI-

[ Reply to This | # ]
A quick way to open a URL in QuickTime Player
Authored by: Shane Palmer on Jun 08, '11 07:32:28AM

You don't even need to do this much work. Once you have Flip4Mac installed, which you should in order to view WMV files, it knows how to handle the mms:// URL either when typing it into Safari or double-clicking on a .inetloc file that begins with mms:// (you can do this by dragging an mms:// URL from Safari to the Desktop). Flip4Mac's WMV Player acts as the default handler for this URL type (you may need to launch it once for this to register), but since it essentially just redirects everything to QuickTime Player, you can just set the mms:// URL handler directly to QuickTime Player using your favorite tool of choice. In my case I like to use RC Default Apps. Now every mms:// URL will launch in QuickTime Player.



[ Reply to This | # ]
A quick way to open a URL in QuickTime Player
Authored by: rorschach on Jul 07, '11 06:26:43PM

If you're using QuickTime Player 7, you can use the built-in Favorites feature (Window > Favorites) and just bookmark the URL right in QuickTime.



[ Reply to This | # ]