<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Red Sweater Blog &#187; FastScripts</title>
	<atom:link href="http://www.red-sweater.com/blog/category/red-sweater-news/fastscripts/feed" rel="self" type="application/rss+xml" />
	<link>http://www.red-sweater.com/blog</link>
	<description>Mac &#38; Technology Writings by Daniel Jalkut</description>
	<lastBuildDate>Tue, 15 May 2012 15:12:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>FastScripts 2.6.1</title>
		<link>http://www.red-sweater.com/blog/2027/fastscripts-2-6-1</link>
		<comments>http://www.red-sweater.com/blog/2027/fastscripts-2-6-1#comments</comments>
		<pubDate>Fri, 29 Jul 2011 14:14:07 +0000</pubDate>
		<dc:creator>Daniel Jalkut</dc:creator>
				<category><![CDATA[FastScripts]]></category>

		<guid isPermaLink="false">http://www.red-sweater.com/blog/?p=2027</guid>
		<description><![CDATA[I released FastScripts 2.6.1 today, which restores support for Mac OS X 10.4 and 10.5, and also includes a few bug fixes and enhancements. One cool trick in 2.6.1 is the way FastScripts behaves when your scripts include &#8220;keystroke&#8221; commands to synthesize keyboard presses. In the past, these scripts were tricky to get right in FastScripts, [...]]]></description>
			<content:encoded><![CDATA[<p>I released <a href="http://www.red-sweater.com/fastscripts/">FastScripts 2.6.1</a> today, which restores support for Mac OS X 10.4 and 10.5, and also includes a few bug fixes and enhancements.</p>
<p>One cool trick in 2.6.1 is the way FastScripts behaves when your scripts include &#8220;keystroke&#8221; commands to synthesize keyboard presses. In the past, these scripts were tricky to get right in FastScripts, because the synthesized keystroke would be mixed up with the very keys you had used to invoke the script. Now, FastScripts will suspend execution of any such script until you release the keys that were pressed to invoke the script.</p>
<p><strong>FastScripts 2.6.1 Changes</strong></p>
<ul>
<li>Prevent conflicts with synthesized keystroke commands and keyboard shortcuts</li>
<li>Fix for situations where FastScripts became the front app after running a script</li>
<li>Fix the built in on-screen display windows to grow in height to fit displayed message</li>
<li>Restore support for Mac OS X 10.4 and 10.5</li>
</ul>
<p>Unfortunately, this update is not available on the Mac App Store. Apple has now rejected it twice, citing the behavior of the app when it is used to run one of Apple&#8217;s own bundled scripts:</p>
<p>/Library/Scripts/Mail Scripts/Create New Message.scpt</p>
<p>This script is terrible to start with, but starting in OS X Lion, it simply doesn&#8217;t work. It fails with cryptic errors, and FastScripts faithfully reports them. <strong>Apple is rejecting FastScripts for the behavior of a faulty script that is bundled with OS X Lion.</strong></p>
<p>The review process for App Store submissions is frustrating to start with: every release takes extra time and there is a great deal of uncertainty as to when an update will finally be made available to customers. I have to admit that sometimes the review team <a href="http://favstar.fm/users/redsweater/status/85815729882005505">identifies serious bugs</a> that I am glad to have fixed before releasing an app. But the benefit of that kind of review seems to be balanced by reviews like this one, where Apple&#8217;s own bugs are being cited as the cause for rejection my app.</p>
<p>I am confident that FastScripts 2.6.1 will eventually be approved for the App Store. In the mean time, any customer who owns the App Store edition can download and run the direct-sale version from my site.</p>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.red-sweater.com/blog/2027/fastscripts-2-6-1/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>FastScripts 2.6: 64-Bit Compatible</title>
		<link>http://www.red-sweater.com/blog/1908/fastscripts-2-6-64-bit-compatible</link>
		<comments>http://www.red-sweater.com/blog/1908/fastscripts-2-6-64-bit-compatible#comments</comments>
		<pubDate>Tue, 12 Jul 2011 01:12:38 +0000</pubDate>
		<dc:creator>Daniel Jalkut</dc:creator>
				<category><![CDATA[FastScripts]]></category>

		<guid isPermaLink="false">http://www.red-sweater.com/blog/?p=1908</guid>
		<description><![CDATA[FastScripts 2.6 is now available, featuring 64-bit compatibility so it can &#8220;run with the big dogs&#8221; on modern Macs. I also fixed a few pesky bugs, and this marks the debut of FastScripts in the Mac App Store. 64-bit compatibility for optimal performance on modern Macs Add support for FKeys F17-F19, available on many modern [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.red-sweater.com/fastscripts/">FastScripts 2.6</a> is now available, featuring 64-bit compatibility so it can &#8220;run with the big dogs&#8221; on modern Macs. I also fixed a few pesky bugs, and this marks the debut of FastScripts in the <a href="http://itunes.apple.com/us/app/fastscripts/id446994638?mt=12">Mac App Store</a>.</p>
<ul>
<li>64-bit compatibility for optimal performance on modern Macs</li>
<li>Add support for FKeys F17-F19, available on many modern Mac keyboards.</li>
<li>Fix a bug where deleted folders remain visible in menu</li>
<li>Fix an issue with case-change-only name changes causing duplicate menu items</li>
</ul>
<p>Enjoy the update, and &#8220;keep on scriptin&#8217;!&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.red-sweater.com/blog/1908/fastscripts-2-6-64-bit-compatible/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Toggle Twitter</title>
		<link>http://www.red-sweater.com/blog/1646/toggle-twitter</link>
		<comments>http://www.red-sweater.com/blog/1646/toggle-twitter#comments</comments>
		<pubDate>Sat, 22 Jan 2011 20:09:53 +0000</pubDate>
		<dc:creator>Daniel Jalkut</dc:creator>
				<category><![CDATA[AppleScript]]></category>
		<category><![CDATA[FastScripts]]></category>
		<category><![CDATA[Usability]]></category>

		<guid isPermaLink="false">http://www.red-sweater.com/blog/?p=1646</guid>
		<description><![CDATA[I use Twitter. A lot, and almost entirely on my Mac desktop. Over the years, I have switched between many popular client applications, often returning to old favorites when the specific advantages of one outweighs the advantages of another for my current priorities. The way I use Twitter is to leave one of these client [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://twitter.com/danielpunkass">I use Twitter</a>. A lot, and almost entirely on my Mac desktop. Over the years, I have switched between many popular client applications, often returning to old favorites when the specific advantages of one outweighs the advantages of another for my current priorities.</p>
<p>The way I use Twitter is to leave one of these client applications running in the background, with all the notification settings set to off. I still check it quite often, but it&#8217;s on my terms. If I get deep into concentration working on some bug, chatting with a friend, or or watching a video, I don&#8217;t want Twitter interrupting me.</p>
<p><a href="http://iconfactory.com/software/twitterrific">Twitterrific</a> was the first desktop client I used, and I can&#8217;t remember whether it was the default choice or if I picked it, but I got in the habit of using the global keyboard shortcut <strong>Cmd-Ctrl-T</strong> to toggle the window&#8217;s visibility. When I tried other Twitter apps, I made a point of setting the preference in that app to match the same shortcut.</p>
<p>Eventually I tried an app that didn&#8217;t support a setting for a global keyboard shortcut, so I had to write a script to do it for me. It occurred to me at some point that I could write a single AppleScript to handle the toggling of visibility regardless of which app I was using.</p>
<p><a href="http://www.red-sweater.com/AppleScript/ToggleTwitter.zip">Download &#8220;Toggle Twitter&#8221;</a></p>
<p>The script logic is pretty simple: given a list of common Twitter app-names, is one of them running? If so, toggle it. If not, launch it. If you&#8217;re using something else, just add it to the list, and it should work perfectly.</p>
<p>I used <a href="http://www.red-sweater.com/fastscripts/">FastScripts</a> to hook this up to the global shortcut <strong>Cmd-Ctrl-T</strong> because it matches my historic muscle memory, and well, T is for Twitter.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.red-sweater.com/blog/1646/toggle-twitter/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Instapaper Keyboard Shortcut</title>
		<link>http://www.red-sweater.com/blog/1594/instapaper-keyboard-shortcut</link>
		<comments>http://www.red-sweater.com/blog/1594/instapaper-keyboard-shortcut#comments</comments>
		<pubDate>Fri, 14 Jan 2011 20:17:10 +0000</pubDate>
		<dc:creator>Daniel Jalkut</dc:creator>
				<category><![CDATA[FastScripts]]></category>
		<category><![CDATA[Usability]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.red-sweater.com/blog/?p=1594</guid>
		<description><![CDATA[Like many people these days, I am using Marco Arment&#8217;s Instapaper to facilitate effortless postponement of reading longer, potentially interesting content I find on the web. Marco provides a handy bookmarklet that you can add to your browser&#8217;s button bar, so when you find something cool you just click &#8220;Read Later&#8221; and it gets added [...]]]></description>
			<content:encoded><![CDATA[<p>Like many people these days, I am using <a href="http://twitter.com/marcoarment">Marco Arment&#8217;s</a> <a href="http://instapaper.com/">Instapaper</a> to facilitate effortless postponement of reading longer, potentially interesting content I find on the web.</p>
<p>Marco provides a handy <a href="http://www.instapaper.com/extras">bookmarklet</a> that you can add to your browser&#8217;s button bar, so when you find something cool you just click &#8220;Read Later&#8221; and it gets added to your Instapaper collection. This is handy, and if you&#8217;re using a browser like Safari, these bookmark bar items even get mapped to default keyboard shortcuts based on their position, e.g. Cmd-1, Cmd-2, etc.</p>
<p>My news reader of choice, NetNewsWire, also supports Instapaper, allowing me to easily add any news item&#8217;s underlying content to my &#8220;Read Later&#8221; list. In NetNewsWire, the keyboard shortcut is Ctrl-P (for paper!), and I&#8217;ve gotten hard wired to punting stuff to my reading list with a quick flick of the keys.</p>
<p>For months I&#8217;ve thought it would be nice if I had the same workflow in Safari and in NetNewsWire: see something, want to read it, don&#8217;t have time, press Ctrl-P. I don&#8217;t know why I took so long to sit down and spend the 5 minutes it took to write an AppleScript wrapper for Marco&#8217;s bookmarklet, and install it in my scripts folder to invoke with <a href="http://www.red-sweater.com/fastscripts/">FastScripts</a>.</p>
<p>If you want to be cool like me:</p>
<ol>
<li>Download and install <a href="http://www.red-sweater.com/fastscripts/">FastScripts</a>. Free for up to 10 shortcuts!</li>
<li>From the FastScripts menu-bar icon, select FastScripts -&gt; Create Safari Scripts Folder.</li>
<li>Download <a href="http://www.red-sweater.com/AppleScript/ReadLater.zip">this script</a>, and move it to the Safari-specific scripts folder: [Home] -&gt; Library -&gt; Scripts -&gt; Applications -&gt; Safari</li>
<li>Switch to Safari.</li>
<li>While holding the Cmd key, select &#8220;Read Later&#8221; from the FastScripts menu.</li>
<li>Assign a keyboard shortcut of your choice. (Ctrl-P for NNW-likeness).</li>
</ol>
<p>Now whenever you see a cool page in Safari, just press Ctrl-P to instantly tag it for later reading.</p>
<p><strong>Update:</strong> David Kendal observes <a href="https://twitter.com/dpkendal/status/26012924975779840">on Twitter</a> that you can assign custom keyboard shortcuts to bookmarks in Safari by simply using the System Preferences Keyboard Shortcuts and assigning to the correctly named bookmark. I was not aware that this would work with bookmarks! Very cool. It diminishes the necessity of the above workflow considerably, though I was pleased to be able to take &#8220;Read Later&#8221; out of my bookmarks bar. Another downside to the System Preferences route? Apparently the keyboard shortcuts will never take effect until you&#8217;ve shown the menu that they appear in at least once per Safari-launch.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.red-sweater.com/blog/1594/instapaper-keyboard-shortcut/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Jump To PayPal Transaction</title>
		<link>http://www.red-sweater.com/blog/1174/jump-to-paypal-transaction</link>
		<comments>http://www.red-sweater.com/blog/1174/jump-to-paypal-transaction#comments</comments>
		<pubDate>Fri, 16 Apr 2010 15:40:30 +0000</pubDate>
		<dc:creator>Daniel Jalkut</dc:creator>
				<category><![CDATA[AppleScript]]></category>
		<category><![CDATA[Business]]></category>
		<category><![CDATA[FastScripts]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.red-sweater.com/blog/?p=1174</guid>
		<description><![CDATA[I complained on Twitter about PayPal&#8217;s unfortunate transaction search utility, which doesn&#8217;t recognize the transaction ID itself as a search term. Georg C. Brückmann chimed in with a semi-solution, which is a URL template you can use to jump directly to a PayPal transaction by ID. Take the root PayPal URL for your country, and [...]]]></description>
			<content:encoded><![CDATA[<p>I <a href="http://twitter.com/danielpunkass/status/12283008210">complained on Twitter</a> about PayPal&#8217;s unfortunate transaction search utility, which doesn&#8217;t recognize <em>the transaction ID</em> itself as a search term.</p>
<p>Georg C. Brückmann <a href="http://twitter.com/gcbrueckmann/status/12283277096">chimed in</a> with a semi-solution, which is a URL template you can use to jump directly to a PayPal transaction by ID. Take the root PayPal URL for your country, and add &#8220;vst/id=&#8221; followed by the PayPal transaction ID. In the United States, this leads to a URL like: <a href="https://www.paypal.com/vst/id=1234">https://www.paypal.com/vst/id=1234﻿</a>.</p>
<p>It&#8217;s sad to say that remembering a static PayPal URL and pasting in the transaction ID in the magic location is indeed easier than navigating PayPal&#8217;s slow and awkward transaction history UI. But it could be even easier with a little automation.</p>
<p><a href="http://www.red-sweater.com/AppleScript/JumpToPayPalTransactionID.zip">Jump To PayPal Transaction ID</a> is a simple AppleScript that prompts you for a transaction ID, constructs the desired URL, and opens it in your default browser. If you don&#8217;t live in the United States, open the script in AppleScript Editor and alter the template URL contained within it.</p>
<p>I put this in my Safari-specific scripts folder:</p>
<pre>[Home] | Library | Scripts | Applications | Safari</pre>
<p>So it&#8217;s available from <a href="http://www.red-sweater.com/fastscripts/">FastScripts</a> whenever I&#8217;m in Safari. Problem solved.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.red-sweater.com/blog/1174/jump-to-paypal-transaction/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>FastScripts Plugin For Google Quick Search Box</title>
		<link>http://www.red-sweater.com/blog/1144/fastscripts-google-quick-search</link>
		<comments>http://www.red-sweater.com/blog/1144/fastscripts-google-quick-search#comments</comments>
		<pubDate>Wed, 24 Mar 2010 19:43:48 +0000</pubDate>
		<dc:creator>Daniel Jalkut</dc:creator>
				<category><![CDATA[AppleScript]]></category>
		<category><![CDATA[FastScripts]]></category>
		<category><![CDATA[Links]]></category>

		<guid isPermaLink="false">http://www.red-sweater.com/blog/?p=1144</guid>
		<description><![CDATA[I love to be surprised by what customers manage to do with my products, so I was thrilled when Martin Kühl wrote to tell me about his GitHub project that provides a FastScripts plugin for Google Quick Search Box. If you&#8217;re not familiar with Google Quick Search Box, it&#8217;s basically a Quicksilver-style launcher, which can [...]]]></description>
			<content:encoded><![CDATA[<p>I love to be surprised by what customers manage to do with my products, so I was thrilled when <a href="http://mkhl.github.com/">Martin Kühl</a> wrote to tell me about <a href="http://github.com/mkhl/fastscripts.hgs">his GitHub project</a> that provides a <a href="http://www.red-sweater.com/fastscripts/">FastScripts</a> plugin for <a href="http://code.google.com/p/qsb-mac/">Google Quick Search Box</a>.</p>
<p>If you&#8217;re not familiar with Google Quick Search Box, it&#8217;s basically a Quicksilver-style launcher, which can open all manner of documents and also do Google searches for whatever you&#8217;re typing, all at once. With the addition of Martin&#8217;s FastScripts plugin, it also magically gains the ability to directly run FastScripts scripts.</p>
<p>So if I bring up the quick search box and start typing the name of one of my scripts, it shows up instantly:</p>
<p><img src="http://www.red-sweater.com/blog/images/Search_Bar-20100324-153353.jpg"/></p>
<p>Significantly, this is more meaningful than simply knowing about where the scripts are located, and running them. Martin mentioned to me that he was taking advantage of my &#8220;API&#8221; for accessing and running the scripts. Huh? What? I don&#8217;t have an API, do I? Oh yes, but of course! AppleScript itself!  Martin used the fact that FastScripts exposes AppleScript access to its library of scripts, and for executing those scripts <em>in the context of FastScripts</em>. So when you select and run a script from the GQSB, it runs exactly as it would if you selected it from the FastScripts menu itself.</p>
<p>A clever piece of work by Martin that takes unexpected advantage of these hooks I put into FastScripts. If you use both FastScripts and GQSB, you might want to check his project out!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.red-sweater.com/blog/1144/fastscripts-google-quick-search/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FastScripts 2.5</title>
		<link>http://www.red-sweater.com/blog/1076/fastscripts-2-5</link>
		<comments>http://www.red-sweater.com/blog/1076/fastscripts-2-5#comments</comments>
		<pubDate>Tue, 29 Dec 2009 15:56:32 +0000</pubDate>
		<dc:creator>Daniel Jalkut</dc:creator>
				<category><![CDATA[FastScripts]]></category>

		<guid isPermaLink="false">http://www.red-sweater.com/blog/?p=1076</guid>
		<description><![CDATA[Today I released an updated version of FastScripts with some pretty cool features and bug fixes: Now supports running plain-text .applescript files The FastScripts menu icon can now be changed to a custom color Alter appearance of menu so it doesn&#8217;t have rounded top corners on 10.6 Bug Fixes Fix glitches with &#8220;Smart Switching&#8221; on [...]]]></description>
			<content:encoded><![CDATA[<p>Today I released an updated version of <a href="http://www.red-sweater.com/fastscripts/">FastScripts</a> with some pretty cool features and bug fixes:</p>
<ul>
<li>Now supports running plain-text .applescript files</li>
<li>The FastScripts menu icon can now be changed to a custom color</li>
<li>Alter appearance of menu so it doesn&#8217;t have rounded top corners on 10.6</li>
<li>Bug Fixes
<ul>
<li>Fix glitches with &#8220;Smart Switching&#8221; on Snow Leopard 10.6</li>
<li>Fix processing of shell script arguments embedded in the &#8220;shebang&#8221; line</li>
<li>Fix a possible crash when changing mouse cursor while selecting from menu</li>
<li>Fix proper display of filenames e.g. when they contain slashes</li>
</ul>
</li>
</ul>
<p>I struggled with the question of whether to allow for colorizing of the menu bar icon. I think personally that all icons in the menu bar should be monochrome and approximately black. But the chorus of feedback from people with legitimate accessibility concerns prompted me to give in and provide a preference to set the color of the icon to <em>any color you like.</em> Yes, you can now make FastScripts hideously ugly, with a simple preference change!</p>
<p><img src="http://www.red-sweater.com/blog/images/FastScripts-20091229-103711.jpg"/></p>
<p>Most of the other changes should be obvious from the outline what they imply. The &#8220;smart switching&#8221; fix will be a welcome change for anybody who started noticing on 10.6 that FastScripts would no longer always become active to make sure a dialog is presented in front of all other windows. I think I&#8217;ve come up with a solution that will now withstand the test of time. Special thanks to <a href="http://www.mikeash.com/">Mike Ash</a> for a giving me a very helpful clue for solving this issue.</p>
<p>The biggest change from a development point of view is one of the most subtle to the user. Here is the FastScripts 2.5 menu:</p>
<p><img src="http://www.red-sweater.com/blog/images/FastScripts-20091229-104119.jpg"/></p>
<p>And here is the old FastScripts 2.4 one:</p>
<p><img src="http://www.red-sweater.com/blog/images/FastScripts-20091229-104422.jpg"/></p>
<p>The rounded corners in the old version weren&#8217;t <em>too terrible</em>, but there was clearly something wrong. Small blemishes such as this are like a dent in the side of a used car. Is it the only thing wrong with the car, or does it reflect an owner who has not taken care of it, inside or out? Now the FastScripts menu projects solidity and reliability, reflecting its core functionality. Thanks to <a href="http://sabi.net/nriley/">Nicholas Riley</a> for pointing out this issue and inspiring me to finally fix it. He also reported the issue with script names not being displayed correctly.</p>
<p>An interesting developer side-note: the explanation for the rounded corners are that up until FastScripts 2.5, the menu was entirely Carbon-based. So what you are seeing is a Carbon &#8220;pop-up menu&#8221; cleverly positioned so that it shows up exactly in the spot where a real menu would appear if I were using one!</p>
<p>When I first developed FastScripts, Cocoa&#8217;s menus were not sophisticated enough to handle all of the functionality I needed. So I used Carbon menus inside what is otherwise a Cocoa app. Fortunately I had the foresight to develop NSMenu and NSMenuItem style wrappers for the Carbon menus. Now that Cocoa menus are suitable for my needs, I was able to essentially remove the wrappers and write directly to the Cocoa menus API for a more integrated look (and less code to maintain, down the road!).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.red-sweater.com/blog/1076/fastscripts-2-5/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Convert To MP3</title>
		<link>http://www.red-sweater.com/blog/942/convert-to-mp3</link>
		<comments>http://www.red-sweater.com/blog/942/convert-to-mp3#comments</comments>
		<pubDate>Fri, 11 Sep 2009 13:03:01 +0000</pubDate>
		<dc:creator>Daniel Jalkut</dc:creator>
				<category><![CDATA[AppleScript]]></category>
		<category><![CDATA[FastScripts]]></category>

		<guid isPermaLink="false">http://www.red-sweater.com/blog/?p=942</guid>
		<description><![CDATA[I store most of my iTunes tracks in Apple&#8217;s AAC encoding format, but from time to time I find it useful to convert some tracks in my library to MP3 format. While AAC is convenient and works on my iPod, iPhone, etc., I have to concede that MP3 format is a little more universal. In [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<p>I store most of my iTunes tracks in Apple&#8217;s AAC encoding format, but from time to time I find it useful to convert some tracks in my library to MP3 format. While AAC is convenient and works on my iPod, iPhone, etc., I have to concede that MP3 format is a little more universal.</p>
<p>In the iTunes &#8220;Advanced&#8221; menu you&#8217;ll find a convenient conversion item, which lets you convert the encoding of a selected song file to whatever your default import encoding is.&nbsp;The problem is, since I&#8217;m always importing as AAC, the only option it gives me is to convert to AAC:</p>
<p></p>
<p style="margin-bottom:2em;">
<img src="http://www.red-sweater.com/blog/images/CreateAAC-20090910-130838.jpg"/>
</p>
<p>
To use iTunes to convert a song to MP3 format, I would have to open up Preferences, click the Import Settings button, and change my default encoding choice to the MP3 encoder. Then I would have to close preferences, do the conversion, and then preferences and switch my encoding choice back to AAC.
</p>
<p>
YUCK!
</p>
<p>
AppleScript to the rescue. Because iTunes exposes an attribute &#8220;current encoder&#8221;, and because AppleScript exposes a command &#8220;convert&#8221;, I can do all the mucking about behind the scenes in a quick-running script that performs theses steps:
</p>
<ol>
<li>Save the current encoding setting.</li>
<li>Switch to the MP3 encoder.</li>
<li>Convert the selected songs.</li>
<li>Set the encoder back to whatever it was</li>
</ol>
<p>
Download the <a href="http://www.red-sweater.com/AppleScript/ConvertToMP3.zip">Convert to MP3</a> script. Install it in [Home] -> Library -> Scripts -> Applications -> iTunes. It will show up in <a href="http://www.red-sweater.com/fastscripts/">FastScript&#8217;s</a> iTunes-specific section, where you can assign a keyboard shortcut if you like.
</p>
<p>
Now when I want to convert songs to MP3 format, I just select them in iTunes, and press the keyboard shortcut I assigned to the script in FastScripts:
</p>
<p style="margin-bottom:2em;">
<img src="http://www.red-sweater.com/blog/images/ConvertToMP3-20090910-131558.jpg"/>
</p>
<p>The conversion happens immediately and my encoding preference is not disturbed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.red-sweater.com/blog/942/convert-to-mp3/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Go To My Music</title>
		<link>http://www.red-sweater.com/blog/930/go-to-my-music</link>
		<comments>http://www.red-sweater.com/blog/930/go-to-my-music#comments</comments>
		<pubDate>Thu, 10 Sep 2009 16:57:42 +0000</pubDate>
		<dc:creator>Daniel Jalkut</dc:creator>
				<category><![CDATA[AppleScript]]></category>
		<category><![CDATA[FastScripts]]></category>

		<guid isPermaLink="false">http://www.red-sweater.com/blog/?p=930</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<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>
<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>
<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>
<pre>tell application "iTunes"
	set view of (browser window 1) to user playlist 1
end tell
</pre>
<p>
Save this <a href="http://www.red-sweater.com/AppleScript/GoToMusic.zip">as a script file</a> in your home directory:</p>
<pre>[Home] -&gt; Library -&gt; Scripts -&gt; Applications -&gt; iTunes
</pre>
<p>
This 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:
</p>
<p>
<img src="http://www.red-sweater.com/blog/images/KeyboardShortcut-20090910-123715.jpg"/>
</p>
<p>
Now when I&#8217;m browsing iTunes, I just press cmd-option-M and it jumps instantly to my music!
</p>
<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>
]]></content:encoded>
			<wfw:commentRss>http://www.red-sweater.com/blog/930/go-to-my-music/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>FastScripts 2.4</title>
		<link>http://www.red-sweater.com/blog/823/fastscripts-2-4</link>
		<comments>http://www.red-sweater.com/blog/823/fastscripts-2-4#comments</comments>
		<pubDate>Tue, 23 Jun 2009 00:25:07 +0000</pubDate>
		<dc:creator>Daniel Jalkut</dc:creator>
				<category><![CDATA[FastScripts]]></category>

		<guid isPermaLink="false">http://www.red-sweater.com/blog/?p=823</guid>
		<description><![CDATA[FastScripts 2.4 is out, with an important change in the evaluation terms. Use FastScripts for free, for as long as you like. All features are enabled and you may define up to 10 keyboard shortcuts. If you decide you want unlimited keyboard shortcuts, purchase a license to remove that limitation. I have been thinking for [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.red-sweater.com/fastscripts/">FastScripts 2.4</a> is out, with an important change in the evaluation terms.</p>
<p>
Use FastScripts for free, for as long as you like. All features are enabled and you may define up to 10 keyboard shortcuts. If you decide you want unlimited keyboard shortcuts, purchase a license to remove that limitation.
</p>
<p>
I have been thinking for some time of eliminating FastScripts Lite.  Customers found it confusing to differentiate between the versions, and I found it tedious to artificially maintain two versions. With the new, liberal evaluation terms in FastScripts 2.4, all of the old Lite functionality and much more is now included for free in the full version.
</p>
<p>
This new version also includes a software update mechanism so you can be sure to stay up to date with new releases as I update the application. So whether you&#8217;re an existing paid user, or a Lite user, be sure to download this release!
</p>
<p>
If you&#8217;ve been thinking of giving FastScripts a try, now is a great time to give it a spin. I hope you will enjoy what it has to offer!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.red-sweater.com/blog/823/fastscripts-2-4/feed</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
	</channel>
</rss>

