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


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: 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 | # ]