{"id":930,"date":"2009-09-10T12:57:42","date_gmt":"2009-09-10T16:57:42","guid":{"rendered":"http:\/\/www.red-sweater.com\/blog\/?p=930"},"modified":"2009-10-16T11:49:16","modified_gmt":"2009-10-16T15:49:16","slug":"go-to-my-music","status":"publish","type":"post","link":"https:\/\/redsweater.com\/blog\/930\/go-to-my-music","title":{"rendered":"Go To My Music"},"content":{"rendered":"<p>In response to the updated iTunes 9.0 from Apple, fellow developer Todd Ditchendorf <a href=\"http:\/\/twitter.com\/iTod\/status\/3882746695\">complained on Twitter<\/a> that the application still lacks a convenient shortcut for &#8220;jumping back to the music.&#8221;<\/p>\n<p>I use iTunes all the time, but it hadn&#8217;t occurred to me how annoying this is. You&#8217;ve been fishing around in the iTunes store, or the Podcasts source, or Audiobooks, or any of the numerous other zones of the application. Then, you get the crazy notion to actually use iTunes to listen to music, so you jump to the search box and start searching. Bah! It&#8217;s not searching my music, it&#8217;s searching the App Store, or whatever. Now you have to go click the &#8220;Music&#8221; icon, and start your search again.<\/p>\n<p>So yes, it would be handy to have a convenient shortcut to switch back to the Music source, and that is where my scripting utility <a href=\"http:\/\/www.red-sweater.com\/fastscripts\/\">FastScripts<\/a> is particularly potent. It was a little tricky to deduce which magic scripting command would achieve the goal, but I think I figured it out:<\/p>\n<pre>tell application \"iTunes\"\n\tset view of (browser window 1) to user playlist 1\nend tell\n<\/pre>\n<p>\nSave this <a href=\"http:\/\/www.red-sweater.com\/AppleScript\/GoToMusic.zip\">as a script file<\/a> in your home directory:<\/p>\n<pre>[Home] -&gt; Library -&gt; Scripts -&gt; Applications -&gt; iTunes\n<\/pre>\n<p>\nThis is an &#8220;Application-specific&#8221; scripts folder for iTunes, meaning it will only show up when the iTunes application is actually active and frontmost. Now you can open up FastScripts (free for up to 10 shortcuts) and use it to assign a keyboard shortcut:\n<\/p>\n<p>\n<img decoding=\"async\" src=\"http:\/\/www.red-sweater.com\/blog\/images\/KeyboardShortcut-20090910-123715.jpg\"\/>\n<\/p>\n<p>\nNow when I&#8217;m browsing iTunes, I just press cmd-option-M and it jumps instantly to my music!\n<\/p>\n<p>I have a bunch of iTunes scripts that I find useful. Over the next few days I&#8217;ll be highlighting other convenient tricks I use to make iTunes a more useful application through its scriptability.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In response to the updated iTunes 9.0 from Apple, fellow developer Todd Ditchendorf complained on Twitter that the application still lacks a convenient shortcut for &#8220;jumping back to the music.&#8221; I use iTunes all the time, but it hadn&#8217;t occurred to me how annoying this is. You&#8217;ve been fishing around in the iTunes store, or [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,6],"tags":[],"class_list":["post-930","post","type-post","status-publish","format-standard","hentry","category-applescript","category-fastscripts"],"_links":{"self":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts\/930","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/comments?post=930"}],"version-history":[{"count":17,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts\/930\/revisions"}],"predecessor-version":[{"id":964,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts\/930\/revisions\/964"}],"wp:attachment":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/media?parent=930"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/categories?post=930"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/tags?post=930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}