{"id":5,"date":"2008-03-19T22:31:51","date_gmt":"2008-03-20T03:31:51","guid":{"rendered":"http:\/\/developer.casgrain.com\/?p=5"},"modified":"2009-05-18T11:58:42","modified_gmt":"2009-05-18T16:58:42","slug":"updating-your-twitter-avatar-from-acorn","status":"publish","type":"post","link":"http:\/\/developer.casgrain.com\/?p=5","title":{"rendered":"Updating your Twitter Avatar from Acorn"},"content":{"rendered":"<p>If you are on <a href=\"http:\/\/twitter.com\/\">Twitter<\/a>, chances are that you have one avatar that you never update because there is nothing in Twitter&#8217;s <a href=\"http:\/\/groups.google.com\/group\/twitter-development-talk\/web\/api-documentation\">API<\/a> to access that part of your profile.<\/p>\n<p>I have written a pair of script for <a href=\"http:\/\/flyingmeat.com\/acorn\/\">Acorn<\/a> that will allow you to do this.<\/p>\n<p>\u00a0<\/p>\n<h3><em>Warning:<\/em>I have tested this on Leopard 10.5.2, with ruby 1.8.6. It works for me. YMMV.<\/h3>\n<ol>\n<li> <a href=\"\/files\/twitter.zip\">Download the two scripts<\/a> here, and put them in <tt>~\/Library\/Application Support\/Acorn\/Plug-Ins\/<\/tt>\n<p>The archive contains a python script (which Acorn will load) and a helper ruby script to do the heavy lifting.<\/li>\n<p>\u00a0<\/p>\n<li> <em>Important!<\/em> Customize the <tt>Twitter.py<\/tt> script with your twitter username and password.\n<p>Maybe I will update the script to have a real UI for this, or simply use the keychain. This is a quick-and-dirty hack.<\/li>\n<p>\u00a0<\/p>\n<li> Install the <tt>mechanize<\/tt> ruby gem, if you don&#8217;t already have it:\u00a0\n<pre>% sudo gem install mechanize<\/pre>\n<\/li>\n<p>\u00a0<\/p>\n<li> Launch Acorn. Open an image. Edit it (crop it, etc&#8230;). You should be able to send it to Twitter by selecting File-&gt;Actions-&gt;Save as Twitter Avatar (by default, Control-Command-T).<\/li>\n<\/ol>\n<p>That&#8217;s it! Share and enjoy!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are on Twitter, chances are that you have one avatar that you never update because there is nothing in Twitter&#8217;s API to access that part of your profile. I have written a pair of script for Acorn that will allow you to do this. \u00a0 Warning:I have tested this on Leopard 10.5.2, with [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-5","post","type-post","status-publish","format-standard","hentry","category-graphics"],"_links":{"self":[{"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=\/wp\/v2\/posts\/5","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5"}],"version-history":[{"count":1,"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=\/wp\/v2\/posts\/5\/revisions"}],"predecessor-version":[{"id":29,"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=\/wp\/v2\/posts\/5\/revisions\/29"}],"wp:attachment":[{"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}