I now pronounce you trouble and strife


Apparently, this is what married people have to struggle with.
Look for the silver lining whenever a cloud appears in the blue. Remember somewhere the sun is shining, and so the right thing to do is make it shine for you.
A heart, full of joy and gladness, will always banish sadness and strife. So always look for the silver lining, and try to find the sunny side of life.
Excerpt from lyrics by B. G. DeSylva, music by Jerome Kern. Stellar performance: Chet Baker singsUsing Automator and scripting to open a URL in QuickTime Player X on Snow Leopard
So my favourite TV channel has this web TV solution that doesn’t quite work like I want it to on my Mac. I figured I’d make an Automator action to compensate for that. Here is, with Norwegian OS text as an added bonus, the whole shebang (click to enlarge):
As it is a service in Safari you can assign a keyboard shortcut to speed up the task even further.
The complete Automator action does these things:
- Gets the source for the current document in Safari with this bit of AppleScript:
on run {input}
tell application "Safari" to set input to source of document 1
return input
end run
- Strips out the actual URL for the video stream through some nifty regexp work in a bash shell:
cat "$@" | grep -o 'http://\w\+\.nrk\.no\/nett\-tv\/asx\.aspx?param=\w\+'
- Opens the stripped URL in QuickTime Player with a bit of AppleScript again:
on run {input}
tell application "QuickTime Player"
activate
open URL input
end tell
end run
It’s a bit of a quick and dirty fix, but it works.
(Sorry for the lack of syntax highlighting, and for the fact that the code snippets are wider than the effing Tumblr template I’m currently using but I promise to fix it eventually!)
Feel free to comment if you like it, or if you think you can improve on it. You’re of course free to use the basic idea of it if you wish to, say, open the current YouTube movie in VLC or something. In that case, let me know how it turns out!
The following deserve praise:
postlogic on EFNet/#mac1 for help with perl regexp
ubajas on EFNet/#linuxhelp for help on converting the perl regexp to something
grepwould understand without-Pand jaargon from the same channel for the-otrick withgrep.John Gruber who wrote an article six years ago about getting the source from Safari with AppleScript.
Finally, if you don’t want to do the work yourself AND LEARN SOMETHING, you can download the zipped Automator action here. :-)
UPDATED: If you download the Automator action from the above link, remember to put it in ~/Library/Services and perhaps restart Safari for the changes to take effect.
My thoughts on the Google Quick Search Box
I work with computers. I use a Mac and started doing so for about five years ago, when I got sick and tired of spending copious amounts of time just to get Windows XP to work, and even more time trying to get something done with it. So I use Quicksilver for doing stuff quickly on my Mac (and that’s just links from that one site—QS is powerful stuff).
I know and curse the fact that Quicksilver is no longer supported by its creator, Nicholas Jitkoff. On the other hand, he started working for Google and making Quick Search Box (Quick Search, Quicksilver, QS, hmmm). This definitely looks promising, and having Google behind you must be great.
Despite the already nice feature set, Quick Search Box is far from a Quicksilver replacement for me in its current state, something I tweeted about earlier this evening. Google QSB tweeted back, and pointed out that some of the things I complained about already exists. I am aware of this, but for me the workflow is much smoother in Quicksilver. So smooth, in fact, that it inspired me to make a video showing you just how fast. My first YouTube video! (Sorry for that one typo, btw.)
(View it full screen if you wish to see what is really going on.)
These are just some of the features I welcome in Quicksilver. I just might make a some more videos if you enjoy that sort of thing. In that case, let me know in the YouTube comments. I thought about making a “Quick Search Box doesn’t do all I want it to do” video, but I’d rather just keep an eye on how it evolves and perhaps do a short video review later on. Maybe I’ll even add an audio commentary track!
On why you should consider OS X
You can put visual effect layers on top of Windows or Linux, but it’s just painting a turd. Instead of ordinary frustration and time-wasting, you get pretty frustration and time-wasting. (And that’s subjective — personally, I find Vista’s Aero and the Linux “eye candy” add-ons to be garish, ugly, tacky, and completely missing the point.)
(…)
Use a Mac for 6 months, and you’ll wonder why you ever used anything else.
As a happy Mac user for the last five years, I couldn’t agree more. I’ve used Windows for the last fifteen years. Ten at home, and the last five through my job as an IT advisor. It is good for one thing and one thing only: Testing my patience. I have become a very, very patient man.
Long Live Lost Love
Browsing through Spotify1 something reminded me of a lost musical love from the eighties, namely drummer Pål Thowsen and his album Sympathy from 1983. It contains a really good version of the Chick Corea song “Duet Suite”, but the album is not to find on neither CD, Spotify or iTunes. I can’t hear it again unless I get a hold of a used copy of the old LP2, and that just plain sucks.
This makes me think of all the musical treasures of olde that are not currently available to new listeners, and which will be more or less brutally lost when the master tapes fade into oblivion in one way or another. Some resourceful people should really come together on this and see to it that all music, old or new, is
made available to the public
replicated to serveral sites around the world for better access times and data security
Few people would probably dispute that cultural heritage is something too valuable to lose. Now’s the time to make it so it doesn’t happen. The only problem is the fact that copyright holders may be an obstacle that prevents this from happening, with loss of intellectual property as an inevitable result. Ah, the bitter irony.
(This post was written in the midst of listening to Bugge Wesseltoft’s new album Playing. I rate it five stars!)
Finally cleaned up my desk a bit.
North By Northwest (1959)
- Roger Thornhill: The moment I meet an attractive woman, I have to start pretending I have no desire to make love to her.
- Eve Kendall: What makes you think you have to conceal it?
- Roger Thornhill: She might find the idea objectionable.
- Eve Kendall: Then again, she might not.
EST - From Gagarin's Point of View
Picked up this one recently, and I’m now giving it the first listen. I have to say: This is a GREAT album. Any music lover would appreciate this. As a review from amazon.com says:
The Esbjörn Svensson Trio is one of the best piano trios in the world. They prove the statement that it’s impossible for jazz to renew itself, without changing it into something completely different to be totally wrong. (…) They really listen to each other.
That last sentence pretty much sums up the whole art of jazz. The able jazz musician’s ability to musically listen and respond to such a great degree is what makes me love jazz the most, and what makes it so enjoyable to play. No other genre of music can bring tears to my eyes.
Update: Sadly, Esbjörn Svensson is no more. :-(
