{"id":2058,"date":"2009-04-16T20:13:00","date_gmt":"2009-04-16T19:13:00","guid":{"rendered":"http:\/\/johnjohnston.info\/blog\/?e=2058"},"modified":"2021-06-26T10:02:37","modified_gmt":"2021-06-26T09:02:37","slug":"growling-tweets","status":"publish","type":"post","link":"https:\/\/johnjohnston.info\/blog\/growling-tweets\/","title":{"rendered":"Growling Tweets"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" style=\"float: left; margin: 4px;\" src=\"https:\/\/johnjohnston.info\/blog\/images\/2009-04\/2009-04-15_twitter_icon.png\" alt=\"twitter icon\" width=\"128\" height=\"128\" \/><\/p>\n<p>I&#8217;ve messed about with the <a title=\"Twitter API Wiki \/ FrontPage\" href=\"http:\/\/apiwiki.twitter.com\/\">twitter API<\/a> before in a ham fisted sort of way (say <a href=\"http:\/\/johnjohnston.name\/tw\/obliquetwit.html\">ObliqueTweet<\/a>, <a href=\"http:\/\/johnjohnston.info\/tw\/present.php#\">twitter presenter<\/a> or <a href=\"http:\/\/johnjohnston.info\/tweetsiow.php\">Tweets @iowconference08<\/a>) by basically borrowing various snippets of code, this is another such effort.<\/p>\n<p>I notice an interesting post on <a href=\"http:\/\/www.theotherblog.com\/\">Tom Smith\u2019s theOTHERblog<\/a>: <a href=\"http:\/\/www.theotherblog.com\/Articles\/2009\/02\/25\/twitter-and-growl\/\">Twitter, Growl, Boosh! In AppleScript!!<\/a>. I&#8217;ve borrowed code from Tom <a title=\"butterfly - John's World Wide Wall Display\" href=\"http:\/\/johnjohnston.info\/blog\/archive\/2006\/09\/24\/butterfly\">before<\/a> and was interested in this latest script. The script basically used growl to show tweets for a search or hashtag to be used when watch tv with a group spread over different locations. Tom&#8217;s script used the Vienna rss reader as a intermediary for handling the RSS. I recently switched from Vienna to NetNewsWire and didn&#8217;t have Vienna installed so took a slightly different approach.<\/p>\n<p>I remembered that someone had mentioned that AppleScript handles xml now (via the &#8216;System Events&#8217; application) and this seemed like an opportunity to mess about with that and <a title=\"Growl\" href=\"http:\/\/growl.info\/\">growl<\/a>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"float: right; margin: 4px;\" src=\"https:\/\/johnjohnston.info\/blog\/images\/2009-04\/2009-04-15_growltweets.png\" alt=\"Growltweets\" width=\"329\" height=\"287\" \/><\/p>\n<p>I&#8217;ve cobbled together an applescript that runs and every minute, downloads the latest from a twitter search and growls them. The script is pretty rough at the moment (and in all likelihood will stay that way) but <a title=\"\" href=\"http:\/\/johnjohnston.info\/pmwiki\/uploads\/Software\/growlTwitterSearch.html\">I&#8217;ve posted it for view<\/a> and will upload the actual script once it looks a wee bit better.<\/p>\n<p>The script might be of use in the same way Tom&#8217;s is, to display tweets over a shared experience. Or perhaps so make sure I don&#8217;t miss an @johnjohnston tweet but don&#8217;t get caught up in twitter while I am &#8216;working&#8217; but really it served to give me a bit more practice with the <a title=\"Twitter API Wiki \/ Search API Documentation\" href=\"http:\/\/apiwiki.twitter.com\/Search+API+Documentation\">twitter search API<\/a> and in starting to learn to parse xml with AppleScript. As twitter become bigger by the second and its API continues to grow I hope one day I&#8217;ll do something useful.<\/p>\n<p>twitter image Mirjami Manninen from <a href=\"http:\/\/www.smashingmagazine.com\/2009\/01\/23\/friday-freebies-flavours-icon-set-and-cute-tweeters-icon-set\/\">smashingmagazine<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve messed about with the twitter API before in a ham fisted sort of way (say ObliqueTweet, twitter presenter or Tweets @iowconference08) by basically borrowing various snippets of code, this is another such effort. I notice an interesting post on Tom Smith\u2019s theOTHERblog: Twitter, Growl, Boosh! In AppleScript!!. I&#8217;ve borrowed code from Tom before and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"mf2_syndication":[],"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"webmentions_disabled_pings":false,"webmentions_disabled":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[6],"tags":[93,967,267,26,260,249],"post_format":[],"class_list":{"0":"post-2058","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-wwwd","7":"tag-applescript","8":"tag-tom-smith","9":"tag-tomsmith","10":"tag-twitter","11":"tag-twitterapi","12":"tag-xml","13":"kind-article","15":"h-entry","16":"hentry"},"better_featured_image":null,"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p57zFQ-xc","jetpack_likes_enabled":false,"jetpack_sharing_enabled":true,"kind":false,"_links":{"self":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/2058","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/comments?post=2058"}],"version-history":[{"count":1,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/2058\/revisions"}],"predecessor-version":[{"id":12679,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/2058\/revisions\/12679"}],"wp:attachment":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/media?parent=2058"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/categories?post=2058"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/tags?post=2058"},{"taxonomy":"post_format","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/post_format?post=2058"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}