Monthly Archives: March 2009

I love Safari 4 (with a little help from some friends)

Safari 4

I don’t usually get like this but it has to be said. I love Safari 4 beta. Before this, I never liked Safari 3 and always preferred Firefox. I am now happy to leave the hulking beast that is Firefox and use the much sleeker Safari 4. Along with a few ad-ons, it satisfies (nearly) everything I want from a browser and feels much more mackish. Namely, the ad-ons I have found to be extremely useful are:

  • Glims (for the sweet search functionality and various other customizations)
  • SafariAdblock
  • A Custom CSS filter for collapsing ad elements on pages like facebook

The only thing I wish I had was something like the Download Statusbar in Firefox.

Applescript application interface command line mplayer

Many high quality (e.g. 1080p) movies take significant system resources to play. A GUI wrapper application only adds an extra middle man. The command line version of mplayer is very fast and has served me well many times. I am a huge fan of the command line but sometimes I just want to double click or drag and drop.

You first need to install macports and then install mplayer by typing

$ sudo port install mplayer

Here Is what I threw together:

on open movies

    — Play each file in the list of files to open.
    repeat with movie in movies

        — Convert alias to conventional path.
        set moviepath to quoted form of ¬
            (POSIX path of (movie as Unicode text))

        — play the file with mplayer.
        set command to "/opt/local/bin/mplayer " & moviepath

        do shell script command

    end repeat

end open

Open the script in Script Editor.app and save it as an Application. Unfortunately you can’t double click anything and open it with this but you can drag and drop as well as select open with.

Well it is not all that impressive but for large movie file you can’t beat mplayer on the command line.