{"id":5125,"date":"2014-06-18T22:28:50","date_gmt":"2014-06-19T05:28:50","guid":{"rendered":"http:\/\/www.podfeet.com\/blog\/?p=5125"},"modified":"2014-06-19T06:29:56","modified_gmt":"2014-06-19T13:29:56","slug":"automator-live-show","status":"publish","type":"post","link":"https:\/\/www.podfeet.com\/blog\/2014\/06\/automator-live-show\/","title":{"rendered":"Using Automator to Launch Applications"},"content":{"rendered":"<p><img decoding=\"async\" style=\"float: right; margin: 5px;\" src=\"https:\/\/podfeet.com\/NosillaCast\/NC_2014\/NC_2014_06_22\/automator_live_show.png\" alt=\"Automator window showing some of my work flow\" \/>Every Sunday night between 4:30 and 4:45pm, I get ready to do the live show. It&#8217;s a pretty complex operation (I even have <a href=\"https:\/\/www.podfeet.com\/blog\/nosillacast-live\/live-show-setup\/\" target=\"_blank\">a diagram<\/a>). Most of the hardware pieces are plugged in all the time, my microphone, my camera, and my Mac, but I run seven applications on my main Mac to get the show to come out in video on Justin.tv, and audio on Alpha Geek Radio and the NosillaCast app and podfeet.com\/live. The diagram is terrifying to most people but I&#8217;ve been doing this for a while so I&#8217;ve pretty much got the hang of it. Every once in a while I may forget a step but it&#8217;s pretty obvious what I forgot since something just won&#8217;t work. This week I was jogging on the beach when it occurred to me that Dorothy (aka @maclurker) should really automate some of this for me. She&#8217;s the one who automated the back end for me, so once the show is done I push a button and the audio file gets encoded properly with all the right ID3 tags and such for iTunes. The only problem is that she&#8217;s off on her silly boat with her husband (or is it silly husband with\u00a0boat) up to Canada. Yeah, she left me. Sure she&#8217;s got Internets most days but it&#8217;s not the same. <!--more--> I decided that I would try to give this automation thing a crack on my own. I figured I&#8217;d get stuck, because inevitably whatever I want to automate ends up needing AppleScript and we&#8217;re way past my pay grade. I had nothing to lose though, and I could torture Dorothy on her trip with endless questions when it didn&#8217;t work out, so that would be fun too. Let&#8217;s review what I have to launch every week:<\/p>\n<ol>\n<li><strong>Feeder<\/strong> &#8211; this is where the show notes live that I reference for the actual content.<\/li>\n<li><strong>Textual<\/strong> is my Internet Relay Chat (or IRC) client that lets me watch the live chatroom chatting about what they&#8217;re making for dinner. This is also where Steve texts me if there&#8217;s a problem.<\/li>\n<li>Better bring up <strong>GarageBand<\/strong> where I make the recording of the show itself. GarageBand 10 is awful for podcasting so I&#8217;m still using GarageBand 6. One problem is that it launches with a whole bunch of weird stuff as default, like reverb on the voice, and I think the metronome is on. I set up a file with everything the way I like it, ducking for the intro and outtro, tracks for Dumb Question Corner music and Chit Chat Across the Pond, so that has to be opened rather than a generic launch of GarageBand.<\/li>\n<li>Now it&#8217;s time to hijack the audio from my mic and GarageBand so that I can send it off to the other tools. <strong>Audio Hijack Pro<\/strong> is launched which sends the audio to Soundflower 2ch.<\/li>\n<li>Now for some tools to catch that audio &#8211; Have to launch <strong>Nicecast<\/strong>, which sends the audio to the Icecast server Donald Burr set up for me, which gets picked up by the NosillaCast app he wrote and by the website at podfeet.com\/live.<\/li>\n<li>Ok, now that we&#8217;ve added Alpha Geek Radio we need to launch a lovely open source tool called <strong>butt<\/strong> to send the audio over there.<\/li>\n<li>We&#8217;re almost done &#8211; now we launch <strong>Wirecast Studio<\/strong>\u00a0which is the tool that combines the video sources and the audio from Audio Hijack Pro over to Justin.tv. \u00a0Like GarageBand though, I have a specific configuration file I need to launch that has settings for which cameras go where, the lower third, and the audio sources.<\/li>\n<\/ol>\n<p>That&#8217;s not too bad, 5 applications just need to launch and 2 need specific files launched. I should be able to crack the code on this! I will definitely spare you the missteps I encountered in my ignorance of using Automator, and\u00a0instead walk you through how easy this actually was. I did a search for Open and luckily Automator figured out what I meant and showed me the Launch Application which was buried in Utilities where I never would have found it. From there I simply dragged Launch Application into the\u00a0main window and it showed me that it would open Contacts by default because it&#8217;s first alphabetically in my list of applications. I changed the pulldown to the application I needed, and then did a rinse and repeat on the other 6. Just like that I had a workflow. I pushed run and surprisingly most of it worked! I had to figure out how to launch those two particular files. For GarageBand I used an action called Get Specified Finder Items, and browsed to my configuration file. Then right after that I dragged in Open Finder Items and set the Open With pulldown to GarageBand. Basically I told it to go find the file, and to open it with the right application. It didn&#8217;t work at first because Automator grabbed the wrong GarageBand, so I pointed it at the right one. I had more problems with Wirecast Studio, for some reason it just simply barfed on opening the file. It would launch Wirecast just fine but then hang up. I had to crash out a bunch of times. Oddly if I opened it by hand and opened that file it worked just fine. I even tried dragging in a Launch Application action to get Wirecast up first and then open the file but it wasn&#8217;t happy with that either. I suspect it&#8217;s actually a problem with Wirecast Studio, it&#8217;s kind of an odd application. The good news is it motivated me to go into the preferences of Wirecast and look to see if there was a way to tell it to always open that file. Duh, it was in the preferences. All these years I&#8217;ve been launching Wirecast, closing the default file, and opening the real one. I&#8217;m an idiot, but at least now I can make my Automator workflow just Launch Wirecast. I created this in Automator as a Workflow so I only needed to save it as an Application and now I can launch it with Spotlight or Alfred and just like that, my 5 minutes of opening applications and getting the right files in them is automated. I&#8217;m really proud of myself. Hope this inspired you to try your hand at Automator to get rid of some annoying repetitive tasks you have to do. If I can do it, anybody can!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Every Sunday night between 4:30 and 4:45pm, I get ready to do the live show. It&#8217;s a pretty complex operation (I even have a diagram). Most of the hardware pieces are plugged in all the time, my microphone, my camera, and my Mac, but I run seven applications on my main Mac to get the [&hellip;]<\/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":""},"categories":[147],"tags":[],"class_list":["post-5125","post","type-post","status-publish","format-standard","hentry","category-blog-posts"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/5125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/comments?post=5125"}],"version-history":[{"count":6,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/5125\/revisions"}],"predecessor-version":[{"id":5133,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/5125\/revisions\/5133"}],"wp:attachment":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/media?parent=5125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/categories?post=5125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/tags?post=5125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}