I’ve been playing with Alfred quite a bit lately and of course I needed a quick way to launch my favorite Netflix shows for that sweet sweet downtime.
I had found a “Chrome Window” AppleScript but I wanted to be able to pass in the
URL of the show I want to watch. A little googling and I wound up with using the
ampersand to make use of that
q variable (query) that’s being passed in.
tell application "Google Chrome"
make new window
tell application "System Events" to set frontmost of process "Google Chrome" to true
do shell script "open " & q
And this is what it looks like in the application:1
But the most interesting part is probably the list of shows. It’s lean, but I started with the best ones first.
And finally this is what it looks like after I’ve used the ⌘-space hotkey to launch it and have typed ‘netflix’: