{"id":99,"date":"2006-02-27T12:12:53","date_gmt":"2006-02-27T19:12:53","guid":{"rendered":"http:\/\/www.red-sweater.com\/blog\/99\/netnewsflix"},"modified":"2006-02-27T20:02:19","modified_gmt":"2006-02-28T03:02:19","slug":"netnewsflix","status":"publish","type":"post","link":"https:\/\/redsweater.com\/blog\/99\/netnewsflix","title":{"rendered":"NetNewsFlix"},"content":{"rendered":"<style type=\"text\/css\"><!-- .caption { border-style:dashed; border-width:1px; border-color:#BBBBBB; margin-left:20px; padding:10px;}--><\/style>\n<p>\nFirst let me say, I love <a href=\"http:\/\/www.netflix.com\/\">Netflix<\/a>. When I&#8217;m not programming, sleeping, or running, I&#8217;m usually watching Netflix. What a life!\n<\/p>\n<p>\nA <a href=\"http:\/\/www.thestainmag.org\/jeffhunt\/\">friend<\/a> who also loves Netflix came to me with a puzzling problem. He&#8217;s coming out of a long term relationship, and among the other shared possessions to be carefully divided was the couple&#8217;s Netflix queue. The account isn&#8217;t in his name, but he wants to keep his share of the hard-accumulated queue. He gazed at the long list of 308 titles and searched the web page carefully for an &#8220;Export&#8221; button. Nowhere to be found. It seems that Netflix, despite it&#8217;s totally awesome domination over all competitors, is a little teeny bit scared of what might happen if you could easily export your queue to a text file and then, say, re-import it to Blockbuster.\n<\/p>\n<p>\n<a href=\"http:\/\/ranchero.com\/netnewswire\/\">NetNewsWire<\/a>, RSS, and AppleScript to the rescue! Since Netflix is hip enough to provide several RSS feeds for its savvy customers, I just grabbed my friend&#8217;s Netflix queue RSS feed, and subscribed with NetNewsWire. Then, after selecting the subscription, I typed the following into Script Editor:\n<\/p>\n<div class=\"caption\">\n<pre>\ntell application \"TextEdit\"\n\tmake new document\nend tell\n\ntell application \"NetNewsWire\"\n\tset myHeadlines to (headlines of selectedSubscription) as list\n\trepeat with myItem in myHeadlines\n\t\tset thisTitle to (title of myItem)\n\t\ttell application \"TextEdit\"\n\t\t\tset text of document 1 to (text of document 1) & thisTitle & return\n\t\tend tell\n\tend repeat\nend tell\n<\/pre>\n<\/div>\n<p>\nIt doesn&#8217;t matter if it&#8217;s efficient, it just has to work once. And voila! Switch to TextEdit and observe a 308 line file with the names of each film in order. If the numbered lines are a problem, a little bit of extra script could take care of that in a jiffy.\n<\/p>\n<p>\nIt&#8217;s exactly these kind of unforeseen circumstances where easy, predictable scripting interfaces save the day.<\/p>\n<p>\n<strong>Update:<\/strong> It wouldn&#8217;t have been the worst thing in the world to simply save the HTML page listing the entire queue, but this solution makes it much easier to manage the data and process it however the owner sees fit.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>First let me say, I love Netflix. When I&#8217;m not programming, sleeping, or running, I&#8217;m usually watching Netflix. What a life! A friend who also loves Netflix came to me with a puzzling problem. He&#8217;s coming out of a long term relationship, and among the other shared possessions to be carefully divided was the couple&#8217;s [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,20],"tags":[],"class_list":["post-99","post","type-post","status-publish","format-standard","hentry","category-applescript","category-hacking"],"_links":{"self":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts\/99","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/comments?post=99"}],"version-history":[{"count":0,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts\/99\/revisions"}],"wp:attachment":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/media?parent=99"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/categories?post=99"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/tags?post=99"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}