<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-471090243154972030</id><updated>2011-07-08T09:16:21.080+02:00</updated><category term='ruby'/><category term='trashcan'/><category term='sleep'/><category term='Adium'/><category term='Internets'/><category term='pimped'/><category term='xkcd'/><category term='AppleScript'/><category term='awesome'/><category term='RailsConfEurope'/><category term='Mac OS X'/><category term='comic'/><category term='fail'/><category term='image'/><category term='Buddy Icon'/><category term='lion'/><category term='iSight'/><title type='text'>Memories of lost youth</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://johan-lind.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/471090243154972030/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://johan-lind.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Johan Lind</name><uri>http://www.blogger.com/profile/03730039195569349458</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_3iDtDZv-lc4/SBtZLH4zciI/AAAAAAAAABI/vbaWP_CpLNE/S220/raO52nDiegKKM7PX0vx4UEnJ-yHZLHN78LaLzEqvn_O_JQiYUtC8adLpexvYNyxh.jpeg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-471090243154972030.post-8582584580724622560</id><published>2009-01-31T16:35:00.003+01:00</published><updated>2009-03-06T20:31:12.847+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ruby'/><category scheme='http://www.blogger.com/atom/ns#' term='fail'/><category scheme='http://www.blogger.com/atom/ns#' term='sleep'/><title type='text'>Ruby sleep fail</title><content type='html'>Dear Ruby, why this weirdness?&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="color: rgb(51, 51, 51);   font-family:'Trebuchet MS';font-size:13px;"&gt;&lt;div id="smartPaste" contenteditable="true" style="overflow-x: hidden; overflow-y: hidden; "&gt;behe:~ 16:34:52&gt; irb&lt;/div&gt;&lt;div id="smartPaste" contenteditable="true" style="overflow-x: hidden; overflow-y: hidden; "&gt;&gt;&gt; sleep 0.9999994&lt;/div&gt;&lt;div id="smartPaste" contenteditable="true" style="overflow-x: hidden; overflow-y: hidden; "&gt;=&gt; 1&lt;/div&gt;&lt;div id="smartPaste" contenteditable="true" style="overflow-x: hidden; overflow-y: hidden; "&gt;&gt;&gt; sleep 0.9999995&lt;/div&gt;&lt;div id="smartPaste" contenteditable="true" style="overflow-x: hidden; overflow-y: hidden; "&gt;Errno::EINVAL: Invalid argument - sleep&lt;/div&gt;&lt;div id="smartPaste" contenteditable="true" style="overflow-x: hidden; overflow-y: hidden; "&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt; &lt;/span&gt;from (irb):2:in `sleep'&lt;/div&gt;&lt;div id="smartPaste" contenteditable="true" style="overflow-x: hidden; overflow-y: hidden; "&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt; &lt;/span&gt;from (irb):2&lt;/div&gt;&lt;div id="smartPaste" contenteditable="true" style="overflow-x: hidden; overflow-y: hidden; "&gt;&gt;&gt; &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/471090243154972030-8582584580724622560?l=johan-lind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://johan-lind.blogspot.com/feeds/8582584580724622560/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=471090243154972030&amp;postID=8582584580724622560' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/471090243154972030/posts/default/8582584580724622560'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/471090243154972030/posts/default/8582584580724622560'/><link rel='alternate' type='text/html' href='http://johan-lind.blogspot.com/2009/01/ruby-sleep-fail.html' title='Ruby sleep fail'/><author><name>Johan Lind</name><uri>http://www.blogger.com/profile/03730039195569349458</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_3iDtDZv-lc4/SBtZLH4zciI/AAAAAAAAABI/vbaWP_CpLNE/S220/raO52nDiegKKM7PX0vx4UEnJ-yHZLHN78LaLzEqvn_O_JQiYUtC8adLpexvYNyxh.jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-471090243154972030.post-1127244674033788878</id><published>2008-05-02T20:11:00.002+02:00</published><updated>2008-05-02T20:14:00.024+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='image'/><category scheme='http://www.blogger.com/atom/ns#' term='pimped'/><category scheme='http://www.blogger.com/atom/ns#' term='trashcan'/><category scheme='http://www.blogger.com/atom/ns#' term='lion'/><title type='text'>Lion trashcan</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://farm4.static.flickr.com/3139/2460009136_451a52fa95.jpg?v=0"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px;" src="http://farm4.static.flickr.com/3139/2460009136_451a52fa95.jpg?v=0" border="0" alt="" /&gt;&lt;/a&gt;Found this awesome pimped lion trashcan today just outside where I work.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/471090243154972030-1127244674033788878?l=johan-lind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://johan-lind.blogspot.com/feeds/1127244674033788878/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=471090243154972030&amp;postID=1127244674033788878' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/471090243154972030/posts/default/1127244674033788878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/471090243154972030/posts/default/1127244674033788878'/><link rel='alternate' type='text/html' href='http://johan-lind.blogspot.com/2008/05/lion-trashcan.html' title='Lion trashcan'/><author><name>Johan Lind</name><uri>http://www.blogger.com/profile/03730039195569349458</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_3iDtDZv-lc4/SBtZLH4zciI/AAAAAAAAABI/vbaWP_CpLNE/S220/raO52nDiegKKM7PX0vx4UEnJ-yHZLHN78LaLzEqvn_O_JQiYUtC8adLpexvYNyxh.jpeg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-471090243154972030.post-6267031000373972266</id><published>2007-11-16T22:37:00.001+01:00</published><updated>2007-11-16T22:45:03.192+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xkcd'/><category scheme='http://www.blogger.com/atom/ns#' term='awesome'/><category scheme='http://www.blogger.com/atom/ns#' term='comic'/><title type='text'>This is awesome</title><content type='html'>&lt;div style="text-align: left;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://xkcd.com/345/"&gt;&lt;img style="margin: 0px auto 10px; cursor: pointer;" src="http://bp1.blogger.com/_3iDtDZv-lc4/Rz4Ogqdvb2I/AAAAAAAAAA8/N-PgynSbGbs/s400/Picture+2.png" alt="" id="BLOGGER_PHOTO_ID_5133556579566579554" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/471090243154972030-6267031000373972266?l=johan-lind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://johan-lind.blogspot.com/feeds/6267031000373972266/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=471090243154972030&amp;postID=6267031000373972266' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/471090243154972030/posts/default/6267031000373972266'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/471090243154972030/posts/default/6267031000373972266'/><link rel='alternate' type='text/html' href='http://johan-lind.blogspot.com/2007/11/this-is-awesome.html' title='This is awesome'/><author><name>Johan Lind</name><uri>http://www.blogger.com/profile/03730039195569349458</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_3iDtDZv-lc4/SBtZLH4zciI/AAAAAAAAABI/vbaWP_CpLNE/S220/raO52nDiegKKM7PX0vx4UEnJ-yHZLHN78LaLzEqvn_O_JQiYUtC8adLpexvYNyxh.jpeg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp1.blogger.com/_3iDtDZv-lc4/Rz4Ogqdvb2I/AAAAAAAAAA8/N-PgynSbGbs/s72-c/Picture+2.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-471090243154972030.post-5808583580166262511</id><published>2007-11-01T19:39:00.000+01:00</published><updated>2007-11-01T19:50:47.299+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Buddy Icon'/><category scheme='http://www.blogger.com/atom/ns#' term='iSight'/><category scheme='http://www.blogger.com/atom/ns#' term='AppleScript'/><category scheme='http://www.blogger.com/atom/ns#' term='Adium'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS X'/><title type='text'>Buddy icon in Adium revisited</title><content type='html'>Played around in the event window of Adium today and realised  that you can actually connect an AppleScript to the "You connect" event. When I connected &lt;a href="http://johan-lind.blogspot.com/2007/06/automatically-update-adium-buddy-icon.html"&gt;my buddy icon update script&lt;/a&gt; to this and removed the "Are you sure.." message, I finally got the automatic updating of my buddy icon on connect to work!&lt;br /&gt;So from now on I won't have any more good, carefully selected photos, just the random way I look when logging on to Adium.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/471090243154972030-5808583580166262511?l=johan-lind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://johan-lind.blogspot.com/feeds/5808583580166262511/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=471090243154972030&amp;postID=5808583580166262511' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/471090243154972030/posts/default/5808583580166262511'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/471090243154972030/posts/default/5808583580166262511'/><link rel='alternate' type='text/html' href='http://johan-lind.blogspot.com/2007/11/buddy-icon-in-adium-revisited.html' title='Buddy icon in Adium revisited'/><author><name>Johan Lind</name><uri>http://www.blogger.com/profile/03730039195569349458</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_3iDtDZv-lc4/SBtZLH4zciI/AAAAAAAAABI/vbaWP_CpLNE/S220/raO52nDiegKKM7PX0vx4UEnJ-yHZLHN78LaLzEqvn_O_JQiYUtC8adLpexvYNyxh.jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-471090243154972030.post-2319882092146268281</id><published>2007-09-20T22:10:00.000+02:00</published><updated>2007-09-20T22:14:05.001+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RailsConfEurope'/><category scheme='http://www.blogger.com/atom/ns#' term='Internets'/><title type='text'>The internets at RailsConf Europe</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_3iDtDZv-lc4/RvLT_vNAWZI/AAAAAAAAAAM/SIbzxDcoE3Y/s1600-h/Picture+2.png"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="http://bp2.blogger.com/_3iDtDZv-lc4/RvLT_vNAWZI/AAAAAAAAAAM/SIbzxDcoE3Y/s320/Picture+2.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5112381618975168914" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/471090243154972030-2319882092146268281?l=johan-lind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://johan-lind.blogspot.com/feeds/2319882092146268281/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=471090243154972030&amp;postID=2319882092146268281' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/471090243154972030/posts/default/2319882092146268281'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/471090243154972030/posts/default/2319882092146268281'/><link rel='alternate' type='text/html' href='http://johan-lind.blogspot.com/2007/09/internets-at-railsconf-europe.html' title='The internets at RailsConf Europe'/><author><name>Johan Lind</name><uri>http://www.blogger.com/profile/03730039195569349458</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_3iDtDZv-lc4/SBtZLH4zciI/AAAAAAAAABI/vbaWP_CpLNE/S220/raO52nDiegKKM7PX0vx4UEnJ-yHZLHN78LaLzEqvn_O_JQiYUtC8adLpexvYNyxh.jpeg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp2.blogger.com/_3iDtDZv-lc4/RvLT_vNAWZI/AAAAAAAAAAM/SIbzxDcoE3Y/s72-c/Picture+2.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-471090243154972030.post-6930445803758985882</id><published>2007-06-24T13:37:00.000+02:00</published><updated>2007-11-01T19:53:07.805+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Buddy Icon'/><category scheme='http://www.blogger.com/atom/ns#' term='iSight'/><category scheme='http://www.blogger.com/atom/ns#' term='AppleScript'/><category scheme='http://www.blogger.com/atom/ns#' term='Adium'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS X'/><title type='text'>Automatically update Adium buddy icon with iSight snapshot</title><content type='html'>So last monday I thought it would be fun to update my Adium buddy icon with how I currently look by taking a new image with the iSight camera that is built into my MacBook Pro. The reason was that I was wearing a suit with necktie and everything to work, something I don't usually do.&lt;br /&gt;&lt;br /&gt;One of my IM buddies , &lt;a href="http://www.peterkrantz.com/"&gt;Peter Krantz&lt;/a&gt;, saw this and commented in shock and awe claiming that was no way for a developer to dress. But he also had a really nice idea - that it would be cool to be able to get an updated image of your buddies every minute or so so you could see how they were looking today and if they where truly available or away.&lt;br /&gt;&lt;br /&gt;I thought it was a nice idea and knowing that most OS X applications can be scripted through AppleScript I figured that it might be possible to implement this for Adium. I soon discovered that you can't take a iSight picture directly from AppleScript, but you can invoke a command called &lt;a href="http://www.intergalactic.de/hacks.html"&gt;isightcapture&lt;/a&gt; that will accomplish this. After poking around in the AdiumXtras AppleScript section I also found some samples of how to change the buddy image. All that was remaining was a few hours of fighting with the weirdness that is AppleScript so I can present this little snippet to you:&lt;br /&gt;&lt;br /&gt;&lt;pre class="textmate-source all_hallow_s_eve"&gt;&lt;span class="linenum"&gt;    1&lt;/span&gt; &lt;span class="source source_applescript"&gt;&lt;span class="support support_function support_function_standardadditions support_function_standardadditions_user-interaction support_function_standardadditions_user-interaction_applescript"&gt;display dialog&lt;/span&gt; &lt;span class="string string_quoted string_quoted_double string_quoted_double_applescript"&gt;&lt;span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_applescript"&gt;"&lt;/span&gt;Do you want to update your buddy picture?&lt;span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_applescript"&gt;"&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="linenum"&gt;    2&lt;/span&gt; &lt;span class="support support_function support_function_standardadditions support_function_standardadditions_miscellaneous support_function_standardadditions_miscellaneous_applescript"&gt;do shell script&lt;/span&gt; &lt;span class="string string_quoted string_quoted_double string_quoted_double_applescript"&gt;&lt;span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_applescript"&gt;"&lt;/span&gt;/Applications/isightcapture &lt;span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_applescript"&gt;"&lt;/span&gt;&lt;/span&gt; &lt;span class="keyword keyword_operator keyword_operator_applescript"&gt;&amp;amp;&lt;/span&gt; POSIX path &lt;span class="keyword keyword_control keyword_control_reference keyword_control_reference_applescript"&gt;of&lt;/span&gt; file &lt;span class="string string_quoted string_quoted_double string_quoted_double_applescript"&gt;&lt;span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_applescript"&gt;"&lt;/span&gt;Macintosh HD:private:tmp:buddyicon.jpg&lt;span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_applescript"&gt;"&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="linenum"&gt;    3&lt;/span&gt; &lt;span class="meta meta_tell-block meta_tell-block_application meta_tell-block_application_generic meta_tell-block_application_generic_applescript"&gt;&lt;span class="keyword keyword_control keyword_control_applescript"&gt;tell&lt;/span&gt; &lt;span class="support support_class support_class_built-in support_class_built-in_applescript"&gt;application&lt;/span&gt; &lt;span class="string string_quoted string_quoted_double string_quoted_double_application-name string_quoted_double_application-name_applescript"&gt;&lt;span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_applescript"&gt;"&lt;/span&gt;Adium&lt;span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_applescript"&gt;"&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="linenum"&gt;    4&lt;/span&gt;     &lt;span class="keyword keyword_control keyword_control_applescript"&gt;set&lt;/span&gt; img &lt;span class="keyword keyword_control keyword_control_applescript"&gt;to&lt;/span&gt; &lt;span class="support support_class support_class_built-in support_class_built-in_applescript"&gt;alias&lt;/span&gt; &lt;span class="string string_quoted string_quoted_double string_quoted_double_applescript"&gt;&lt;span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_applescript"&gt;"&lt;/span&gt;Macintosh HD:private:tmp:buddyicon.jpg&lt;span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_applescript"&gt;"&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="linenum"&gt;    5&lt;/span&gt;     &lt;span class="keyword keyword_control keyword_control_applescript"&gt;set&lt;/span&gt; fileid &lt;span class="keyword keyword_control keyword_control_applescript"&gt;to&lt;/span&gt; &lt;span class="support support_function support_function_standard-suite support_function_standard-suite_applescript"&gt;open&lt;/span&gt; for access img &lt;span class="comment comment_line comment_line_double-dash comment_line_double-dash_applescript"&gt;&lt;span class="punctuation punctuation_definition punctuation_definition_comment punctuation_definition_comment_applescript"&gt;--&lt;/span&gt; opens the image&lt;br /&gt;&lt;/span&gt;&lt;span class="linenum"&gt;    6&lt;/span&gt;     &lt;span class="keyword keyword_control keyword_control_applescript"&gt;set&lt;/span&gt; tifimagedata &lt;span class="keyword keyword_control keyword_control_applescript"&gt;to&lt;/span&gt; &lt;span class="support support_function support_function_standardadditions support_function_standardadditions_file-i-o support_function_standardadditions_file-i-o_applescript"&gt;read&lt;/span&gt; fileid &lt;span class="keyword keyword_operator keyword_operator_applescript"&gt;as&lt;/span&gt; TIFF &lt;span class="support support_class support_class_built-in support_class_built-in_applescript"&gt;picture&lt;/span&gt; &lt;span class="comment comment_line comment_line_double-dash comment_line_double-dash_applescript"&gt;&lt;span class="punctuation punctuation_definition punctuation_definition_comment punctuation_definition_comment_applescript"&gt;--&lt;/span&gt; reads the image&lt;br /&gt;&lt;/span&gt;&lt;span class="linenum"&gt;    7&lt;/span&gt;     &lt;span class="keyword keyword_control keyword_control_applescript"&gt;set&lt;/span&gt; default image &lt;span class="keyword keyword_control keyword_control_applescript"&gt;to&lt;/span&gt; tifimagedata &lt;span class="comment comment_line comment_line_double-dash comment_line_double-dash_applescript"&gt;&lt;span class="punctuation punctuation_definition punctuation_definition_comment punctuation_definition_comment_applescript"&gt;--&lt;/span&gt; sets the buddy icon&lt;br /&gt;&lt;/span&gt;&lt;span class="linenum"&gt;    8&lt;/span&gt;     &lt;span class="support support_function support_function_standard-suite support_function_standard-suite_applescript"&gt;close&lt;/span&gt; access fileid&lt;br /&gt;&lt;span class="linenum"&gt;    9&lt;/span&gt; &lt;span class="keyword keyword_control keyword_control_applescript"&gt;end tell&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;What it actually does: Asks you if you want to update your picture, if you do it will take a snapshot with your iSight camera and set it as your default image in Adium (be sure to select the global buddy icon for all accounts for this to work).&lt;br /&gt;&lt;br /&gt;What I haven't figured out yet is how to make this run everytime I start Adium. I have only managed to attach it to in-chat trigger words (like "/snapshot"). Or how to make this take a snapshot a timed interval. If you have any hints, then please leave a comment.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Update:&lt;/span&gt; &lt;a href="http://johan-lind.blogspot.com/2007/11/buddy-icon-in-adium-revisited.html"&gt;Finally got it working!&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/471090243154972030-6930445803758985882?l=johan-lind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://johan-lind.blogspot.com/feeds/6930445803758985882/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=471090243154972030&amp;postID=6930445803758985882' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/471090243154972030/posts/default/6930445803758985882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/471090243154972030/posts/default/6930445803758985882'/><link rel='alternate' type='text/html' href='http://johan-lind.blogspot.com/2007/06/automatically-update-adium-buddy-icon.html' title='Automatically update Adium buddy icon with iSight snapshot'/><author><name>Johan Lind</name><uri>http://www.blogger.com/profile/03730039195569349458</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_3iDtDZv-lc4/SBtZLH4zciI/AAAAAAAAABI/vbaWP_CpLNE/S220/raO52nDiegKKM7PX0vx4UEnJ-yHZLHN78LaLzEqvn_O_JQiYUtC8adLpexvYNyxh.jpeg'/></author><thr:total>2</thr:total></entry></feed>
