{"id":1264,"date":"2013-12-30T11:09:56","date_gmt":"2013-12-30T11:09:56","guid":{"rendered":"http:\/\/johnjohnston.info\/106\/?p=1264"},"modified":"2014-01-01T15:20:15","modified_gmt":"2014-01-01T15:20:15","slug":"automating-autocomplete-gifs","status":"publish","type":"post","link":"https:\/\/johnjohnston.info\/106\/automating-autocomplete-gifs\/","title":{"rendered":"Automating autocomplete Gifs"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1265\" alt=\"google_autocomplete\" src=\"https:\/\/johnjohnston.info\/106\/wp-content\/uploads\/2013\/12\/google_autocomplete.gif\" width=\"500\" height=\"240\" \/><\/p>\n<p>I saw <a href=\"http:\/\/internetpoetry.tumblr.com\/post\/71334161589\">an autocomplete poem on tumblr<\/a> today which reminded me of <a href=\"http:\/\/bionicteaching.com\/illustrating-the-odd-autocompletes\/\">Illustrating Odd Autocompletes | Bionic Teaching<\/a> and the ds106 assignment that came out of it. <a href=\"http:\/\/assignments.ds106.us\/assignments\/illustrating-odd-autocompletes\/\">Illustrating Odd Autocompletes<\/a>.<br \/>\nOn another post, <a href=\"http:\/\/bionicteaching.com\/internet-ephemera-sociology-edition\/\">Internet Ephemera \u2013 Sociology Edition<\/a> Tom Woodward has a flickr slide show of some autocompletes, which made me think of creating an animated gif.<br \/>\nA bit of thought and I realised that this could be automated with a few bits and pieces. The main one being <a href=\"http:\/\/www.lcdf.org\/gifsicle\/\">Gifsicle<\/a>. Gifsicle is a command line tool for creating animated gifs, I used it in <a href=\"http:\/\/johnjohnston.info\/106\/simple-glitch-update\/\">Simple Glitch<\/a> and <a href=\"http:\/\/johnjohnston.info\/106\/movie2gif\/\">Movie2Gif<\/a>.<\/p>\n<p>This time I though I could use it in combination with AppleScript and Safari to produce some simple gifs.<br \/>\nHere is the script:<br \/>\n<a href=\"http:\/\/johnjohnston.info\/106\/wp-content\/uploads\/2013\/12\/autocomplete-gif-applescript.html\">autocomplete-gif-applescript<\/a><\/p>\n<p>It just asks for a bit of text and used that to create gifs by running through the alphabet, eg give it I love&#8221; and you get, I love a, I love b, etc. The final animated gif is saved on the desktop, in this example called i-love.gif<\/p>\n<p>I just run this from the apple script editor. As the script uses System Events to &#8216;type&#8217; you need to turn on access for assistive devices and applications for the Script Editor if you are using OS 10.9 (<br \/>\n<a href=\"http:\/\/support.apple.com\/kb\/HT6026?viewlocale=en_US&amp;locale=en_US\">OS X Mavericks: Enable access for assistive devices and applications<\/a>)<\/p>\n<p>You do need to have installed <a href=\"http:\/\/www.lcdf.org\/gifsicle\/\">Gifsicle<\/a> first too.<br \/>\nI&#8217;ve hard coded the crop into the script, if Safari is not filling the screen (not full screen) you would have to edit the script for that too.<\/p>\n<p>I guess it has taken me a wee while to figure this out, but I can now produce as many autocomplete gifs as I like.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1270\" alt=\"ds106\" src=\"https:\/\/johnjohnston.info\/106\/wp-content\/uploads\/2013\/12\/ds106.gif\" width=\"500\" height=\"240\" \/><\/p>\n<p style=\"text-align: center;\"><strong><a href=\"http:\/\/johnjohnston.info\/tests\/autocomplete-gifs.php\">lots more<\/a><\/strong><\/p>\n<p>Update, 01.01.14 <a href=\"http:\/\/johnjohnston.info\/oddsandends\/social-media-is\/\">Social Media is<\/a> even more, now using the google search box rather than the safari location bar.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I saw an autocomplete poem on tumblr today which reminded me of Illustrating Odd Autocompletes | Bionic Teaching and the ds106 assignment that came out of it. Illustrating Odd Autocompletes. On another post, Internet Ephemera \u2013 Sociology Edition Tom Woodward has a flickr slide show of some autocompletes, which made me think of creating an &hellip; <a href=\"https:\/\/johnjohnston.info\/106\/automating-autocomplete-gifs\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Automating autocomplete Gifs&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"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,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[74],"tags":[147],"class_list":["post-1264","post","type-post","status-publish","format-standard","hentry","category-animatedgif","tag-animatedgif-gifsicle-automation"],"better_featured_image":null,"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3RLlC-ko","_links":{"self":[{"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/posts\/1264","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/comments?post=1264"}],"version-history":[{"count":8,"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/posts\/1264\/revisions"}],"predecessor-version":[{"id":1276,"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/posts\/1264\/revisions\/1276"}],"wp:attachment":[{"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/media?parent=1264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/categories?post=1264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/tags?post=1264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}