Thanks for that; it turns out that IO.popen worked slightly better but
it would have taken me a long time to get it working without your
pointer. In case you're interested as to what I was doing I've written
it up here:
http://www.mike-worth.com/2012/06/24/updating-youtube-music-player/

Thanks a lot,
Mike

-- 
Posted via http://www.ruby-forum.com/.