<?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>LifeClever ;-) &#187; AppleScript</title>
	<atom:link href="http://www.lifeclever.com/tag/applescript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lifeclever.com</link>
	<description>How to live and work as a designer</description>
	<lastBuildDate>Wed, 09 Nov 2011 03:29:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>FlexTime + Growl: A gentle way to end procrastination</title>
		<link>http://www.lifeclever.com/flextime-growl-a-gentle-way-to-end-procrastination/</link>
		<comments>http://www.lifeclever.com/flextime-growl-a-gentle-way-to-end-procrastination/#comments</comments>
		<pubDate>Fri, 25 Aug 2006 00:39:39 +0000</pubDate>
		<dc:creator>Chanpory Rith</dc:creator>
				<category><![CDATA[Lifehacks]]></category>
		<category><![CDATA[AppleScript]]></category>
		<category><![CDATA[FlexTime]]></category>
		<category><![CDATA[Growl]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Procrastination]]></category>

		<guid isPermaLink="false">http://www.lifeclever.com/2006/08/24/flextime-growl-a-gentle-way-to-end-procrastination/</guid>
		<description><![CDATA[Daniel Jalkut has just released the final version of FlexTime, a fantastic little Mac timer deftly suited for the (10+2)*5 procrastination hack. It still has no out-of-the-box support for Growl&#8217;s nifty notification system. Luckily, FlexTime now has robust support for AppleScript, allowing a backdoor into the Growl system. With a little tinkering, I&#8217;ve put together [...]]]></description>
			<content:encoded><![CDATA[<p><img id="image176" src="http://www.lifeclever.com/wp-content/uploads/2006/08/flextime_growl.jpg" alt="Flextime plus Growl" />Daniel Jalkut has just released the final version of <a href="http://www.red-sweater.com/flextime/" title="FlexTime home">FlexTime,</a> a fantastic little Mac timer deftly suited for the <a href="http://www.43folders.com/2005/10/11/procrastination-hack-1025/" title="Merlin's procrastination description">(10+2)*5</a> procrastination hack. It still has no out-of-the-box support for <a href="http://growl.info/about.php" title="About Growl">Growl&#8217;s</a> nifty notification system. Luckily, FlexTime now has robust support for AppleScript, allowing a backdoor into the Growl system.</p>

<p>With a little tinkering, I&#8217;ve put together an AppleScript to let FlexTime use the Growl system to gently remind you when a new activity starts, such as when to work and when to play. I call the script, FlexTimeGrowl. (Imaginative, huh?)</p>

<p>Here&#8217;s how to use it:</p>

<h2>Set up</h2>

<p><img id="image177" src="http://www.lifeclever.com/wp-content/uploads/2006/08/flextimesetup.jpg" alt="FlexTime setup" class="large" />Assuming you have <a href="http://www.red-sweater.com/flextime/" title="Download FlexTime">FlexTime</a> and <a href="http://growl.info/downloads.php" title="Download Growl">Growl</a> already installed, here&#8217;s how to set up the FlexTimeGrowl script:</p>

<ol>
<li><p><strong>Download the script here:</strong><br />
<a href="http://www.lifeclever.com/wp-content/uploads/2006/08/FlexTimeGrowl.zip" title="Download FlexTimeGrowl">FlexTimeGrowl script</a></p></li>
<li><p><strong>Create activities for work and play</strong><br />
Click the plus icon on the upper left corner of the window to create a new activity. Under &#8220;Activity Schedule&#8221;, a new item will appear. Create two activities: one titled &#8220;Get back to work!&#8221; with a duration of 10 minutes, and one titled &#8220;Time for play!&#8221; with a duration of 2 minutes.</p></li>
<li><p><strong>Set up cues to run the FlexTimeGrowl script</strong><br />
Next to &#8220;At Start&#8221; choose &#8220;Run Script&#8221;. To the right of that, there&#8217;s a pulldown. Use it to choose the FlexTimeGrowl script you just downloaded.</p></li>
<li><p><strong>Save</strong><br />
Save your routine, and press play.</p></li>
</ol>

<p>All done! When an activity starts, Growl will gently notify you with an alert that pops up, stays for a couple seconds, then goes away on its on. With Growl&#8217;s &#8220;Music Video&#8221; style notifications, it looks like this (you can adjust the speed in Growl&#8217;s preferences):</p>

<p><img id="image178" src="http://www.lifeclever.com/wp-content/uploads/2006/08/growl_notify.gif" alt="Growl popup" class="large" /></p>

<p>Growl uses the filename of the routine as the alert&#8217;s heading and the name of the activity as the message. So, if your FlexTime routine is saved as &#8220;Procrastination Hack&#8221; and your work activity is titled &#8220;Get back to work!&#8221;, it will look like this:</p>

<p><img id="image179" src="http://www.lifeclever.com/wp-content/uploads/2006/08/growl_notification.jpg" alt="Growl notification example" class="large" /></p>

<p>To change the titles, just rename your routine and activities.</p>

<p><strong>Note:</strong> Small bug as of version 1.01: For some reason, FlexTime won&#8217;t run AppleScripts until the first activity that plays finishes. This means Growl notifications won&#8217;t start working until the end of the first activity. Once the next activity in the routine starts, notifications appear as expected.</p>

<h2>Why use Growl&#8217;s notification system?</h2>

<ol>
<li><p><strong>It&#8217;s gentle</strong><br />
If you&#8217;ve set up FlexTime to show a text message when an activity starts, you have click the message to make it go away. With Growl, notifications appear and disappear gently without you having to do anything. </p></li>
<li><p><strong>More style</strong><br />
Growl allows you to customize the appearance of notifications, and comes with a few customizable styles to choose from. My favorite is the &#8220;Music Video&#8221; style shown in the example above.</p></li>
</ol>

<h2>Caveats</h2>

<p>My knowledge of AppleScript is very rudimentary. The script I made is hacked together from samples on the Growl and Flextime websites. Sources:</p>

<ul>
<li><a href="http://www.red-sweater.com/blog/169/flextime-scripted-cues" title="FlexTime AppleScript example">FlexTime AppleScript example</a></li>
<li><a href="http://growl.info/documentation/applescript-support.php" title="Growl AppleScript example">Growl AppleScript example</a></li>
</ul>

<p>If you see a better and cleaner way to do this, please let us know! </p>
<img src="http://www.lifeclever.com/?ak_action=api_record_view&id=175&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.lifeclever.com/flextime-growl-a-gentle-way-to-end-procrastination/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
	</channel>
</rss>

