<?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>Roopesh's Blog &#187; Applescript</title>
	<atom:link href="http://www.roopeshsheth.com/category/applescript/feed" rel="self" type="application/rss+xml" />
	<link>http://www.roopeshsheth.com</link>
	<description>A random blog</description>
	<lastBuildDate>Fri, 30 Apr 2010 05:46:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Remember the Milk + Entourage + Attachments = :-)</title>
		<link>http://www.roopeshsheth.com/2008/07/06/remember-the-milk-entourage-attachments</link>
		<comments>http://www.roopeshsheth.com/2008/07/06/remember-the-milk-entourage-attachments#comments</comments>
		<pubDate>Sun, 06 Jul 2008 07:07:01 +0000</pubDate>
		<dc:creator>Roopesh Sheth</dc:creator>
				<category><![CDATA[Applescript]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[Organize]]></category>
		<category><![CDATA[Remember the Milk]]></category>
		<category><![CDATA[simplify]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Utilities]]></category>
		<category><![CDATA[Attachments]]></category>
		<category><![CDATA[Entourage]]></category>
		<category><![CDATA[RTM]]></category>

		<guid isPermaLink="false">http://www.roopeshsheth.com/?p=126</guid>
		<description><![CDATA[A while back I created an Entourage script to create tasks from email messages in Remember the Milk. Well, I finally got around to improving it. You don&#8217;t have to be a geek (or nerd, or goober) to use the new features (see Enhancements below). Anyone with Entourage and an iDisk will be able to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.roopeshsheth.com/2008/02/22/create-a-task-from-entourage-in-rtm">A while back</a> I created an Entourage script to create tasks from email messages in <a href="http://www.rememberthemilk.com">Remember the Milk</a>.  Well, I finally got around to improving it.</p>
<p>You don&#8217;t have to be a geek (or nerd, or goober) to use the new features (see Enhancements below).  Anyone with Entourage and an iDisk will be able to use the attachments functionality.</p>
<p>The installation is still the same as the first release.  Here are the previous instructions:</p>
<blockquote><p>1. Unzip and save in &#8220;~/Documents/Microsoft User Data/Entourage Script Menu Items&#8221;<br />
2. Rename &#8220;Create Task from Message\cT.scpt&#8221; to &#8220;Create Task from Message.scpt&#8221;<br />
3. Start Entourage (you do not need to restart if its already running).<br />
4. Highlight a message and hit ^T.<br />
5. Follow the onscreen instructions.<br />
6. Get organized!</p></blockquote>
<p>I don&#8217;t like to repeat myself, so here&#8217;s the release notes, which covers the new features:</p>
<blockquote><p>Version History<br />
v0.2 &#8211; July 6, 2008<br />
- Enhancements<br />
- Ability to configure a remote disk to store files, and add the URL to the RTM task&#8217;s URL field.<br />
- Tested only with iDisk.<br />
- Requires the remote disk to be mountable via WebDAV.<br />
- The URL will be http://[remoteURL you enter]/RTM-Attachments<br />
- You can change the name of the folder via the remoteDiskFolder variable in the properties declaration section below<br />
- Uploads may take a while, depending on speed, size of upload, and other factor that I can&#8217;t predict.  Be patient.<br />
- Stuff you can store on the remote drive:<br />
- One or more, or all, of the attachments of an email<br />
- The entire email, as a .eml file<br />
-<br />
- Only the text/plain parts of a message are added to the notes of a task, gone is all the formatted stuff that didn&#8217;t look right anyways and was pretty unlegible.<br />
- Large notes are broken up, instead of truncated, and fed into RTM in reverse order, so that the notes can be read just like the original email.<br />
- Known issues<br />
- useEmailToCreateTasks doesn&#8217;t work when using the remote disk folder and attachments.  The task gets created, but everything (list name and URL) end up in the notes.  However, try the new API functionality, as it&#8217;s way improved with the breakdown of large notes.<br />
v0.1 &#8211; Initial release</p></blockquote>
<p>Here&#8217;s the high level logic for creating attachments, for the interested parties.  (<a href="http://www.roopeshsheth.com/wp-content/uploads/2008/07/symbolsrtm-entourage-attachment-logic.jpg" target="_blank">Click</a> for a bigger picture)</p>
<p><a href="http://www.roopeshsheth.com/wp-content/uploads/2008/07/symbolsrtm-entourage-attachment-logic.jpg" target="_blank"><img src="http://www.roopeshsheth.com/wp-content/uploads/2008/07/symbolsrtm-entourage-attachment-logic.jpg" border="0" alt="RTM Entourage Attachment Logic.jpg" width="288" height="366" /></a></p>
<p>I&#8217;ll do my best to answer your questions in the comments.</p>
<p>Get it <a href="http://www.roopeshsheth.com/wp-content/uploads/2008/07/applescriptcreate-rtm-taskctscpt.zip" title="Create RTM Task\cT.scpt.zip">here</a>.</p>
<p><strong>Update: </strong>Updated the version, as the previous one had a bug with certain special characters in filenames and/or subject lines.  I had also (accidentally) distributed the last scpt as read-only.</p>
<p><strong>Update 2: </strong>Added a screen walkthrough <a href="http://www.roopeshsheth.com/wp-content/uploads/2008/07/screencastEntourage-RTM-Attachments.mov">here</a>.</p>
<p><strong>Update 3: </strong>A few more fixes and enhancements:</p>
<blockquote><p>
v0.2c &#8211; July 6, 2008<br />
	- Enhancements<br />
		- Allows for configurable task title naming during task creation<br />
			- See editTaskTitle below<br />
	- Bug Fixes<br />
		- More special character handling<br />
v0.2b &#8211; July 6, 2008<br />
	- Bug Fixes<br />
		-Replaced certain special characters in filenames and subjects to avoid filesystem errors
</p></blockquote>

<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/Attachments' rel='tag' target='_self'>Attachments</a>, <a class='technorati-link' href='http://technorati.com/tag/Entourage' rel='tag' target='_self'>Entourage</a>, <a class='technorati-link' href='http://technorati.com/tag/Organize' rel='tag' target='_self'>Organize</a>, <a class='technorati-link' href='http://technorati.com/tag/Remember+the+Milk' rel='tag' target='_self'>Remember the Milk</a>, <a class='technorati-link' href='http://technorati.com/tag/RTM' rel='tag' target='_self'>RTM</a>, <a class='technorati-link' href='http://technorati.com/tag/simplify' rel='tag' target='_self'>simplify</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://www.roopeshsheth.com/2008/07/06/remember-the-milk-entourage-attachments/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
<enclosure url="http://www.roopeshsheth.com/wp-content/uploads/2008/07/screencastEntourage-RTM-Attachments.mov" length="13207518" type="video/quicktime" />
		</item>
		<item>
		<title>Create a task from Entourage in RTM</title>
		<link>http://www.roopeshsheth.com/2008/02/22/create-a-task-from-entourage-in-rtm</link>
		<comments>http://www.roopeshsheth.com/2008/02/22/create-a-task-from-entourage-in-rtm#comments</comments>
		<pubDate>Sat, 23 Feb 2008 07:41:08 +0000</pubDate>
		<dc:creator>Roopesh Sheth</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Applescript]]></category>
		<category><![CDATA[Remember the Milk]]></category>
		<category><![CDATA[simplify]]></category>
		<category><![CDATA[automate]]></category>
		<category><![CDATA[Entourage]]></category>
		<category><![CDATA[RTM]]></category>
		<category><![CDATA[Task]]></category>

		<guid isPermaLink="false">http://www.roopeshsheth.com/2008/02/22/create-a-task-from-entourage-in-rtm</guid>
		<description><![CDATA[You may remember that I said I was going to try out Remember the Milk last week. If not, catch up now. All caught up? Good. I played with RTM a bit more and decided I&#8217;m going to give it a try. It seems to work really well and lots of people have written integrations [...]]]></description>
			<content:encoded><![CDATA[<p>You may <a href="http://www.roopeshsheth.com/2008/02/16/trying-out-remember-the-milk">remember that I said</a> I was going to try out <a href="http://www.rememberthemilk.com">Remember the Milk</a> last week.  If not, <a href="http://www.roopeshsheth.com/2008/02/16/trying-out-remember-the-milk">catch up</a> now.</p>
<p>All caught up?  Good.  I played with RTM a bit more and decided I&#8217;m going to give it a try.  It seems to work really well and <a href="http://www.rememberthemilk.com/services/">lots</a> of people have written <a href="http://www.rememberthemilk.com/services/api/">integrations</a> for it.</p>
<p>Add to this story that I&#8217;ve decided to use Entourage instead of Parallels &amp; Outlook at work.  Unfortunately, Entourage&#8217;s task management is abysmal.</p>
<p>Starting to see where I&#8217;m going with this?</p>
<p>While I found lots of integrations available for RTM and other applications, I couldn&#8217;t find anything for Entourage.  <a href="http://www.google.com/search?q=applescript&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=FlockInc.:en-US:official&amp;client=firefox">AppleScript</a> to the rescue!</p>
<p>Without getting into all the gory details, the script (see link below) will allow you to highlight a message in Entourage and create a task in RTM based on the message.  The message&#8217;s subject will be the task name and the message&#8217;s body will end up as a note.</p>
<p>Instructions:<br />
1. Unzip and save in &#8220;~/Documents/Microsoft User Data/Entourage Script Menu Items&#8221;<br />
2. Rename &#8220;Create Task from Message\cT.scpt&#8221; to &#8220;Create Task from Message.scpt&#8221;<br />
3. Start Entourage (you do <strong>not</strong> need to restart if its already running).<br />
4. Highlight a message and hit ^T.<br />
5. Follow the onscreen instructions.<br />
6. Get organized!</p>
<p><strong>[Updated 2/24/2008]</strong> Added more steps for clarity.</p>
<p>(More information after the jump)</p>
<p><a title="Create RTM Task\cT.scpt.zip" href="http://www.roopeshsheth.com/wp-content/uploads/2008/02/create-rtm-taskct.scpt1.zip">Create RTM Task\cT.scpt.zip</a></p>
<p>[poll=3]</p>
<p><span id="more-90"></span></p>
<p>Some requirements, also included in the script:</p>
<blockquote><p>Script requirements (basically, my configuration&#8230; your milage may vary):<br />
- Mac OS X 10.5.2<br />
- Microsoft Mac Office 2008 w/Entourage<br />
- XMLLIB osax by Satimage (Smile companion), available here: <a href="http://www.satimage.fr/software/en/downloads/downloads_companion_osaxen.html">http://www.satimage.fr/software/en/downloads/downloads_companion_osaxen.html</a><br />
- XML Tools 2.9 by Nate Night Software, available here: <a href="http://www.latenightsw.com/freeware/XMLTools2/">http://www.latenightsw.com/freeware/XMLTools2/</a></p>
<p>FAQ:<br />
- Q1: What if I want to change the email address associated with my RTM account?<br />
- A1: Open a terminal window and run this &#8220;defaults delete com.apple.Entourage-RTM&#8221;.  You will quickly go through the authentication process again and be asked the email address you would like to send to.</p></blockquote>
<p>(<a href="mailto:%72%6F%6F%70%65%73%68%2E%62%6C%6F%67%40%73%68%65%74%68%2E%63%6F%6D">send me</a> questions and I&#8217;ll expand the FAQ)</p>
<p>There are also some user-configurable settings:</p>
<blockquote><p>User configurable variables</p>
<p>Use email or use the API to create RTM tasks?<br />
Pros of API: not dependent on email transmission, instant notification of failures.<br />
Cons of API: Not very robust, cannot handle large notes.<br />
Pros of email: Assuming you&#8217;re using this for entourage, you already have email open.  Very robust, can send in any variable for the task (see http://www.rememberthemilk.com/help/answers/sending/emailinbox.rtm).  Even if the connection is temporarily lost, the email will queue and will eventually show up as a task.<br />
Cons of email: You have these emails in your Sent Items.  Clogging up the internet with email.</p>
<p>default setting: true<br />
available settings: true, false</p>
<p>IMPORTANT!! If you plan to use the API, make sure this file exists at ~/Library/Application Support/Entourage-RTM.<br />
The file should be named &#8220;encodeurl.sh&#8221;.  You can copy this text and paste it into a new file.</p>
<p>#!/usr/bin/tclsh<br />
package require http<br />
puts [::http::formatQuery [lindex $argv 0] [lindex $argv 1]]</p>
<p>property useEmailToCreateTasks : true</p>
<p>Parsing is only relevant to the API calls.  If set to 1, RTM will attempt to find a due date in the task subject.  Probably not really useful, but I don&#8217;t see a big downside to it, either.<br />
default setting: &#8220;1&#8243;<br />
available settings: &#8220;1&#8243;, &#8220;0&#8243;</p>
<p>property chooseParse : &#8220;1&#8243;</p>
<p>ADVANCED USAGE ONLY.  Will display a whole lot of popups during the task creation.</p>
<p>default setting: false<br />
available settings: true, false</p>
<p>property debugOn : false</p></blockquote>
<p>Good luck!</p>

<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/Applescript' rel='tag' target='_self'>Applescript</a>, <a class='technorati-link' href='http://technorati.com/tag/automate' rel='tag' target='_self'>automate</a>, <a class='technorati-link' href='http://technorati.com/tag/Entourage' rel='tag' target='_self'>Entourage</a>, <a class='technorati-link' href='http://technorati.com/tag/Remember+the+Milk' rel='tag' target='_self'>Remember the Milk</a>, <a class='technorati-link' href='http://technorati.com/tag/RTM' rel='tag' target='_self'>RTM</a>, <a class='technorati-link' href='http://technorati.com/tag/Task' rel='tag' target='_self'>Task</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://www.roopeshsheth.com/2008/02/22/create-a-task-from-entourage-in-rtm/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

