<?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>Veritrope &#187; Apple Mail</title>
	<atom:link href="http://veritrope.com/tag/apple-mail/feed/" rel="self" type="application/rss+xml" />
	<link>http://veritrope.com</link>
	<description>Tech, Arts, Travel</description>
	<lastBuildDate>Mon, 05 Jul 2010 09:46:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='veritrope.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>Apple Mail to Evernote AppleScript Update &#8212; Now With Attachments!</title>
		<link>http://veritrope.com/tips/apple-mail-to-evernote-applescript-update-now-with-attachments/</link>
		<comments>http://veritrope.com/tips/apple-mail-to-evernote-applescript-update-now-with-attachments/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 03:55:12 +0000</pubDate>
		<dc:creator>Justin</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Apple Mail]]></category>
		<category><![CDATA[Applescript]]></category>
		<category><![CDATA[Evernote]]></category>

		<guid isPermaLink="false">http://veritrope.com/?p=4508</guid>
		<description><![CDATA[Update to the latest version!]]></description>
			<content:encoded><![CDATA[<p><img src="http://veritrope.com/wp-content/uploads/2010/06/EvernoteDrop.png" alt="" title="EvernoteDrop" width="128" height="128" class="alignleft size-full wp-image-4467" /><br />
I&#8217;ve updated the Apple Mail to Evernote Archiver Script to Version 1.3 &#8212; <a href="http://veritrope.com/tips/mail-to-evernote/" >Check out the script&#8217;s page</a> for details (and a download link!)</p>
]]></content:encoded>
			<wfw:commentRss>http://veritrope.com/tips/apple-mail-to-evernote-applescript-update-now-with-attachments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learn To Speak AppleScript, Part 3: Coding Like Picasso</title>
		<link>http://veritrope.com/tips/learn-to-speak-applescript-part-3/</link>
		<comments>http://veritrope.com/tips/learn-to-speak-applescript-part-3/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 04:38:25 +0000</pubDate>
		<dc:creator>Justin</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Apple Mail]]></category>
		<category><![CDATA[Applescript]]></category>
		<category><![CDATA[Mail.app]]></category>

		<guid isPermaLink="false">http://veritrope.com/?p=4099</guid>
		<description><![CDATA[Part Three of a short tutorial on how AppleScript can streamline your work, make you more productive, and save you time!]]></description>
			<content:encoded><![CDATA[<p><a href="http://media.veritrope.com/wp-content/uploads/2010/04/picasso4602.jpg" ><img class="alignright size-full wp-image-4147" title="picasso4602" src="http://media.veritrope.com/wp-content/uploads/2010/04/picasso4602.jpg" alt="" width="150" height="136" /></a></p>
<blockquote><p><strong>If you&#8217;re just joining us, here are Parts <a href="http://veritrope.com/tips/learn-to-speak-applescript" >One</a> and <a href="http://veritrope.com/tips/learn-to-speak-applescript-part-2" >Two</a> of the &#8220;Learn To Speak AppleScript&#8221; Series!</strong></p></blockquote>
<p>Familiar with that quote by Pablo Picasso <em>“Good artists copy, great artists steal&#8221;</em>?</p>
<p>Well&#8230; let&#8217;s just say this:<br />
<strong>We&#8217;re going to make you into a <em>Great AppleScript Artist</em> with this lesson! <img src='http://veritrope.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </strong><br />
<span id="more-4099"></span></p>
<h3>Who Says That There&#8217;s No Honor Among Thieves?</h3>
<p>With painting, music, writing &#8211; it&#8217;s a tradition to acknowledge the people that came before you.  After all, without their contributions, you&#8217;d still be twiddling your thumbs.  The best artists may have big egos, but they know that they aren&#8217;t starting from scratch &#8212; and programming is no different.</p>
<p>Realize this &#8212; <strong>The very act of writing an AppleScript immediately makes you a part of the Mac Community</strong>. It is a deep well where you can draw from the wisdom and insights of its long-standing members, benefit from its strong tradition of mentoring newcomers, and also share **your** insights back with those creative, smart people &#8212; all over the world.</p>
<p>As we discussed in <a href="http://veritrope.com/tips/learn-to-speak-applescript-part-2" >Part Two of &#8220;Learn To Speak AppleScript&#8221;</a>, &#8220;good programming&#8221; is a by-product of good thinking.  Your head and your ego need to be situated properly to think clearly and to do your best work.  It&#8217;s no different that a batter stepping up to the plate, a singer stepping up to a microphone, etc. &#8212; you should do what you have to do in order to &#8220;settle in&#8221; before game time.</p>
<p>Here&#8217;s one thing that I&#8217;ve been doing before writing or programming lately: I re-read Liz Danzico&#8217;s post (a.k.a., <a target="_blank" href="http://twitter.com/bobulate" >@Bobulate</a>) about <a target="_blank" href="http://bobulate.com/post/485584506/the-enthusiasm-currency" >&#8220;The Currency of Enthusiasm&#8221;</a>.  Her post is a reminder that I can encourage more good work in the world by just taking a moment to acknowledge it when I see it.  (BTW &#8212; Nice job, Liz! )</p>
<p>And believe it or not, I can make the world a better place by using someone else&#8217;s code bits in my AppleScript.</p>
<h3>The Art of The Steal</h3>
<p>Picasso made a distinction between &#8220;copying&#8221; and &#8220;stealing&#8221; &#8212; &#8220;stealing&#8221; being the road to artistic greatness.</p>
<p>Is &#8220;stealing&#8221; just copying <em>more</em>?  No.<br />
<strong>It&#8217;s quite literally the act of taking something that belongs to someone else &#8212; <em>and making it your own</em>.</strong></p>
<p>After all, chances are that if you&#8217;re facing a programming challenge (hell, if you&#8217;re facing <em>any kind of challenge in life</em>), some one else has been through it.  Thankfully, programmers as a group tend to talk in great detail about the &#8220;code dragons&#8221; that they&#8217;ve slain &#8212; and they often publish the source code that they used to do it.</p>
<p>So I say find that code.  Use it.   And, ultimately, make it your own.</p>
<p>And that, my friends, is &#8220;The Art of the Steal&#8221; and an essential key to Learning to Speak AppleScript.   Find those smart people who have generously shared their solution to your problem, use it not only to solve your immediate problems but also to learn, and then acknowledge that their good work was a help to you.  If you can, find ways to improve their bits and make them your own &#8212; and share your contribution back with the community so that other people can benefit from it.</p>
<p>Take a penny.  Leave a penny.</p>
<p>&#8220;Internet etiquette&#8221; isn&#8217;t some esoteric thing: If you do it correctly, you&#8217;ll learn how to be a better programmer, you&#8217;ll make new friends, and you&#8217;ll get to help people.  Your enthusiasm will shine a light on the contributions of others &#8212; and encourage new people to add water to the collective well of ideas and not just drink it dry.</p>
<p>Do it wrong &#8212; and <a target="_blank" href="http://www.kungfugrippe.com/post/508615417/regret" >you&#8217;ll be a pariah</a>.</p>
<h1><a href="http://veritrope.com/tips/learn-to-speak-applescript-part-3/2" >On the Next Page &#8212; We Begin to Code!</a></h1>
]]></content:encoded>
			<wfw:commentRss>http://veritrope.com/tips/learn-to-speak-applescript-part-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learn To Speak AppleScript, Part 2: Baby Steps</title>
		<link>http://veritrope.com/tips/learn-to-speak-applescript-part-2/</link>
		<comments>http://veritrope.com/tips/learn-to-speak-applescript-part-2/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 01:00:33 +0000</pubDate>
		<dc:creator>Justin</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Apple Mail]]></category>
		<category><![CDATA[Applescript]]></category>
		<category><![CDATA[Export]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://veritrope.com/?p=3946</guid>
		<description><![CDATA[Part Two of a short tutorial on how AppleScript can streamline your work, make you more productive, and save you time!  This lesson focuses on how to plan a new script and prepare to write it!]]></description>
			<content:encoded><![CDATA[<blockquote>
<h3><a href="http://veritrope.com/tips/learn-to-speak-applescript" >Click Here To Read Part One of &#8220;Learn To Speak AppleScript&#8221;</a></h3>
</blockquote>
<p><img src="http://media.veritrope.com/wp-content/uploads/2009/11/apple_script.gif" alt="" title="applescript"  class="alignright size-full wp-image-3566" /><br />
To recap the end of <a href="http://veritrope.com/tips/learn-to-speak-applescript" >Part One</a>, your goal will be to build a script that will save your emails as text files.   The actual programming will be covered in Part Three and, when we get there, I&#8217;ll try to stay more &#8220;conceptual&#8221;.</p>
<p><em>My goal</em> will be to give you a feel for how an AppleScript does its job &#8212; but still include enough real-life code to keep it interesting for more experienced scripters (or for people who came here from a search engine looking for a bit of code to get their scripts up and running!)</p>
<p>But, if you <em>are</em> a beginner, don&#8217;t let those computer code snippets intimidate you!  They are included primarily so that you can see what a real-life Script looks like and not with any expectation that you master the intricacies of the AppleScript language.</p>
<p>After all, this is really an exercise in teaching you the fundamentals of <em>thinking and speaking</em> AppleScript.  In other words, this is going to be more like an English class in literature where we talk about books and what they mean &#8212; and <strong>not</strong> a grammar lesson.</p>
<p>In fact, that metaphor is actually a pretty good way to get started!<br />
<span id="more-3946"></span></p>
<h3>The First Step Is Between Your Ears</h3>
<p>As I mentioned in Part One, AppleScript is an &#8220;English-like&#8221; programming language.</p>
<p>What we are going to do in this lesson is to state our goals as clearly as we can &#8212; and do so in plain, everyday language.  Once we&#8217;ve done that, we&#8217;ll set about writing an AppleScript that matches up with that description.</p>
<blockquote><p>
<strong>Rule #1:</strong><br />
<em>First, we say it in English&#8230;. then we say it in &#8220;English-like&#8221;.</em>
</p></blockquote>
<p>Writing a good AppleScript is like&#8230;.  (wait for it) &#8230;. <em>writing a good <strong>anything</strong>!</em></p>
<p>Most things that are well-written have probably started from a place of being <em>well-thought-out</em>, right?  That&#8217;s not to say that you won&#8217;t discover some fun, unexpected stuff along the way &#8212; but <strong>actions begin with intentions</strong>.  My experience is this: The clearer you are about your intentions when you start, the more you&#8217;ll make the right choices along the way.<sup>1</sup></p>
<p>And the more likely you&#8217;ll end up with <em>a working thing</em> at the end of your journey.</p>
<h1>The Goal of the Script (In Plain English)</h1>
<p>First, we need to state our overall goal as clearly as we can.  For this first sample script, that goal is:</p>
<blockquote><p><strong>&#8220;I want a script that will save emails as text files.&#8221;</strong></p></blockquote>
<h3>The Basic Elements We&#8217;ll Need In the Script:</h3>
<p>Now that we know <em>what we want to do</em>, we&#8217;ll flesh out the details more fully:<br />
<span class="pullquote"><!--First, We Say It In English.... Then We Say It In "English-Like".--></span></p>
<ol>
<li>I use the Apple Mail application to read my emails.</li>
<li>I want to be able to save emails as text files.</li>
<li>I want to be able to save more than one email at a time.</li>
<li>I want to be able to control where the text files are saved to.</li>
<li>I want the new text files to have distinctive names so that I can tell them apart more easily.</li>
<li>I want the script to come up with those names so that I don&#8217;t have to do it for each file.</li>
</ol>
<h3>&#8220;I Four Years Old!&#8221;</h3>
<p>You&#8217;ll notice how explicit I was in calling out each part of what I wanted to do.</p>
<p><strong>This way of thinking in terms of &#8220;baby steps&#8221; towards your overall goal is probably the most important thing you can take from this lesson.</strong></p>
<p>Here&#8217;s why &#8212; AppleScript is great, but teaching it to do what you want it to do can be like <em>trying to teach a child</em>.   You really need to try and see things through the eyes of a kid (or, in this case, a computer that knows only what you tell it) in order to know how to communicate.</p>
<blockquote><p>
<strong>Rule #2:</strong><br />
<em>AppleScript is like an energetic child.  It&#8217;s eager to please &#8212; but in need of clear, constant direction.</em></p></blockquote>
<p>It reminds me a bit of that old Bill Cosby comedy routine about a kid named Jeffery:</p>
<p><object width="500" height="400"><param name="movie" value="http://www.youtube.com/v/Fs0cYJUqJys&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/Fs0cYJUqJys&#038;fs=1" type="application/x-shockwave-flash" width="500" height="400" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>If you have any hope of getting off the plane with your sanity intact, you&#8217;re going to have to learn how to translate your adult language into something a kid can understand.  That is to say, it&#8217;s something <em>you&#8217;re absolutely going to be able to do</em> &#8212; it&#8217;s just going to take a brief transition while you take a deep breath and mentally switch gears from your language and into theirs.</p>
<h3>Sometimes, Kids Just Don&#8217;t Understand</h3>
<p>I&#8217;ll make one more point using the &#8220;Talking To Kids Metaphor&#8221; as we end Part Two&#8230;</p>
<p>Every kid is different.<br />
Some are barely able to tie their shoes.<br />
Some come up to you and, unprompted, freak you out by asking if you&#8217;re an <a target="_blank" href="http://www.amazon.com/gp/redirect.html?ie=UTF8&#038;location=http%3A%2F%2Fwww.amazon.com%2Fs%3Fie%3DUTF8%26x%3D0%26ref_%3Dnb%5Fsb%5Fnoss%26y%3D0%26field-keywords%3Dexistentialist%26url%3Dsearch-alias%253Daps&#038;tag=veritrope-20&#038;linkCode=ur2&#038;camp=1789&#038;creative=390957" >existentialist</a><img src="https://www.assoc-amazon.com/e/ir?t=veritrope-20&#038;l=ur2&#038;o=1" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />.</p>
<p>In the world of AppleScript, each of the applications on your Mac &#8212; programs like Apple Mail, Firefox, Evernote, iCal, etc. &#8212; are like kids at different grade levels.  And, although you can sometimes guess, you&#8217;ll never really know<em> which type of kid it is</em> until you start talking to them and figure out their vocabulary level.</p>
<p>And this is the point where, thankfully, reality departs from the metaphor:  In the computer world, you can<em> actually see which words an application knows ahead of time</em> &#8212; sparing you painful, Jeffery-like conversations.  When it comes to speaking AppleScript, each program keeps a list of the vocabulary it knows in <strong>an AppleScript Dictionary</strong>. (Easy to remember, right?)</p>
<h3>Ready To Talk?</h3>
<p>In Part Three, we&#8217;ll open up that dictionary and start having an AppleScript conversation with a fairly &#8220;well-spoken&#8221; kid on the Application playground &#8212; Apple Mail!</p>
<ol class="footnotes"><li id="footnote_0_3946" class="footnote">I&#8217;d like to welcome everyone to the Veritrope.com &#8220;Den of Zen&#8221;&#8230;</li></ol>]]></content:encoded>
			<wfw:commentRss>http://veritrope.com/tips/learn-to-speak-applescript-part-2/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Mac Users &#8212; Want To Get Things Done Faster? Learn to Speak AppleScript!</title>
		<link>http://veritrope.com/tips/learn-to-speak-applescript/</link>
		<comments>http://veritrope.com/tips/learn-to-speak-applescript/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 06:04:24 +0000</pubDate>
		<dc:creator>Justin</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Apple Mail]]></category>
		<category><![CDATA[Applescript]]></category>
		<category><![CDATA[Export]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://veritrope.com/?p=3560</guid>
		<description><![CDATA[Part One of a short tutorial on how AppleScript can streamline your work, make you more productive, and save you time!]]></description>
			<content:encoded><![CDATA[<p><img src="http://media.veritrope.com/wp-content/uploads/2009/11/apple_script.gif" alt="" title="applescript"  class="alignright size-full wp-image-3566" /><br />
<strong>Here&#8217;s something for both new and experienced Mac users &#8212; Part One of a short tutorial on how AppleScript can streamline your work, make you more productive, and save you time!</strong></p>
<h3>What Exactly <em>is</em> AppleScript?</h3>
<p>AppleScript is an English-like language used to write programs that control applications on your computer.  The &#8220;English-like&#8221; part is important &#8212; <em>it means that you don&#8217;t need to have a computer science degree to use it.</em><br />
<strong><br />
<blockquote>Simply put, it&#8217;s programming for regular people who want to <em>get things done faster</em>.</p></blockquote>
<p></strong><br />
<span id="more-3560"></span><br />
The programs that you write in AppleScript are called &#8220;scripts&#8221; (you saw that coming, right?).  Much like the script for a movie, an AppleScript is really just a list of instructions for your computer to follow.  It&#8217;s kind of like saying to your Mac, &#8220;Okay &#8212; when I say <em>this</em>, you need to <strong>do X, Y, and Z</strong>.&#8221;  Honestly, that&#8217;s all that <i>scripting</i> means&#8230;  giving your Mac a To-Do list.</p>
<p><strong>Best of all, it&#8217;s free!</strong>  Apple generously includes several tools that you&#8217;ll need to get started with automating tasks on your Mac &#8212; including the AppleScript Editor, which is used to write and save new AppleScripts for your computer to follow.</p>
<h3>What is AppleScript Good For?</h3>
<p>If you&#8217;ve ever known the soul-sucking drudgery of having to perform the same tasks over-and-over again on your computer, then AppleScript is for you!  <strong>AppleScript automates repetitive tasks for you.</strong>  So, instead of wasting time doing everything by hand, your computer does it for you&#8230;</p>
<p>(This is, after all, what they are <em><strong>supposed to do</strong> in the first place</em>. <img src='http://veritrope.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  )</p>
<p>Need to change the names of 100 files?  You can either spend <em>the next hour clicking and typing yourself into <strong>carpal-tunnel-induced dementia</strong><sup>1</sup> </em> &#8212; or spend 2 minutes to write a script, click a button, and it&#8217;s done!</p>
<p>Most programs on the Mac have at least some level of support for AppleScript and, if you look around <a href="http://veritrope.com" >Veritrope.com</a>, you&#8217;ll see <a href="http://veritrope.com/tag/applescript" >AppleScripts</a> that I&#8217;ve written to work with (and to connect together) many popular Mac applications.   There are literally thousands of AppleScripts available to automate your system (most of them free!).</p>
<p>And, if by some chance you can&#8217;t find a script that someone else has written to automate a particular task, it really is easy enough to write one for yourself.</p>
<h3>How do I learn AppleScript?</h3>
<p>People often write me asking &#8220;How did you learn AppleScript?&#8221;</p>
<p>The simple answer is that I started <em><strong>reading</strong> AppleScripts</em> written by people who knew what they were doing.  The more that I read, the more I understood what was possible &#8212; and also some of the things you needed to make a working script.</p>
<p>
In other words &#8212; <strong><span class="pullquote">Before I could really speak AppleScript, I started to learn how to **THINK** AppleScript</span></strong>.  It&#8217;s really not any different than if you were dropped into a place where you didn&#8217;t know the language.  You&#8217;d probably understand what the people around you <em>were getting at</em> &#8212;   long before you learned enough of the language to make yourself understood.
</p>
<h3>How To Learn The Language</h3>
<p>
The quasi-official <a target="_blank" href="http://www.macosxautomation.com/" >macosxautomation.com</a> site is probably the best place to get started.  It has <strong>lots</strong> of introductory tutorials and code examples for the beginning AppleScripter &#8212; but also some great introductions to other utilities that really set the Mac apart (like Automator and Services).</p>
<p>People like <a target="_blank" href="http://www.amazon.com/gp/redirect.html?ie=UTF8&#038;location=http%3A%2F%2Fwww.amazon.com%2Fs%3Fie%3DUTF8%26x%3D0%26ref_%3Dnb%5Fsb%5Fnoss%26y%3D0%26field-keywords%3Dben%2520waldie%26url%3Dsearch-alias%253Daps&#038;tag=veritrope-20&#038;linkCode=ur2&#038;camp=1789&#038;creative=390957" >Ben Waldie</a><img src="https://www.assoc-amazon.com/e/ir?t=veritrope-20&#038;l=ur2&#038;o=1" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> (a guru of AppleScript and <a target="_blank" href="http://www.automatedworkflows.com/" >Mac Automation</a>) &#8212; as well as any number of people who post on <a target="_blank" href="http://macscripter.net/" >the MacScripter forum</a> &#8212; also really helped me get going.  I was truly inspired by their projects&#8230; and also by the community that they maintained to help new people like me get started.</p>
<p>As I started to <em>really</em> get more into it, I also found some great <a target="_blank" href="http://www.amazon.com/gp/redirect.html?ie=UTF8&#038;location=http%3A%2F%2Fwww.amazon.com%2Fs%3Fie%3DUTF8%26x%3D0%26ref_%3Dnb%5Fsb%5Fnoss%26y%3D0%26field-keywords%3DAppleScript%26url%3Dsearch-alias%253Daps&#038;tag=veritrope-20&#038;linkCode=ur2&#038;camp=1789&#038;creative=390957" >books about AppleScript</a><img src="https://www.assoc-amazon.com/e/ir?t=veritrope-20&#038;l=ur2&#038;o=1" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> (Especially <a target="_blank" href="http://www.amazon.com/gp/product/0321149319?ie=UTF8&#038;tag=veritrope-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=0321149319" >Sal Soghoian&#8217;s &#8220;AppleScript 1-2-3&#8243;</a><img src="http://www.assoc-amazon.com/e/ir?t=veritrope-20&#038;l=as2&#038;o=1&#038;a=0321149319" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />)</p>
<h3>Learning How To Think</h3>
<p>All of the resources that I just mentioned are <strong><em>the</em></strong> places to learn the actual ins-and-outs of programming in AppleScript&#8230; Honestly, you really can&#8217;t do much better than all of these great, talented teachers!  Read what they have to say &#8212; and they&#8217;ll whip your scripting vocabulary and programming grammar into shape before you know it!</p>
<p>What I&#8217;d like to do here is a little different: I want to try and <em><strong>teach you how to think in AppleScript</strong></em> so that, while you&#8217;re learning from these great resources, you&#8217;ll have an existing framework for understanding what they&#8217;re trying to teach you.  That way when it comes time to write your own scripts, you&#8217;ll hopefully have a stronger sense of what your looking for and, what&#8217;s more, the types of scripts you&#8217;ll need to put together to make it all work.</p>
<p>In <a href="http://veritrope.com/tips/learn-to-speak-applescript-part-2" >Part Two of this series</a>, we&#8217;re going to start to build our first sample script: <strong>An AppleScript that will save your emails as text files!</strong></p>
<ol class="footnotes"><li id="footnote_0_3560" class="footnote">This is not a real condition&#8230;I hope!</li></ol>]]></content:encoded>
			<wfw:commentRss>http://veritrope.com/tips/learn-to-speak-applescript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Export Apple Mail Messages and Notes to Text Files</title>
		<link>http://veritrope.com/tips/export-apple-mail-messages-and-notes-to-text-files/</link>
		<comments>http://veritrope.com/tips/export-apple-mail-messages-and-notes-to-text-files/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 21:41:07 +0000</pubDate>
		<dc:creator>Justin</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Apple Mail]]></category>
		<category><![CDATA[Applescript]]></category>
		<category><![CDATA[Export]]></category>
		<category><![CDATA[Messages]]></category>
		<category><![CDATA[Notes]]></category>
		<category><![CDATA[Text Files]]></category>

		<guid isPermaLink="false">http://veritrope.com/?p=3202</guid>
		<description><![CDATA[An AppleScript to Export Selected Apple Mail Messages and Notes to Individual Text Files.]]></description>
			<content:encoded><![CDATA[<p>I saw a Tweet from <a target="_blank" href="http://ukmac.net/" >Scott Paterson</a>, asking if there was an AppleScript to quickly batch export Notes from Apple Mail into individual text file.</p>
<p> Well Scott &#8212; If there wasn&#8217;t one before, there is now!</p>
<p><span id="more-3202"></span></p>
<h3>Features</h3>
<ul>
<li>This AppleScript will export any selected Messages or Notes in Apple Mail as individual text files to a temporary folder on your Desktop (called &#8220;Temp Export Folder&#8221;);</li>
<li>The script also attempts to remove any &#8220;illegal characters&#8221; from the file name as to avoid the process grinding to a complete halt!</li>
<li>If you have <a target="_blank" href="http://growl.info" >Growl</a> installed, the script should detect it and notify you when your export is completed.</li>
</ul>
<h3>Current Limitations and Open Issues</h3>
<p>(Otherwise known as &#8220;Places Where You Could Help Out!&#8221;)</p>
<ul>
<li>I kept the output very basic &#8212; only spitting out the content of the note/message as the content of the text file.  It *IS* possible to add more information from the messages and, if people are interested in that, let me know!</li>
<li>Errors that will undoubtedly arise when you do something that I didn&#8217;t think of or test for!  <img src='http://veritrope.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
</ul>
<h3>How to Install and Use</h3>
<p>First, select the messages or notes in Apple Mail.</p>
<p>Then just run the script&#8230; either:</p>
<ol>
<li>Manually;</li>
<li>By using Snow Leopard&#8217;s &#8220;Keyboard Shortcuts&#8221;, or;</li>
<li>By using <a target="_blank" href="http://www.red-sweater.com/fastscripts/" >FastScripts</a></li>
</ol>
<h3>Source Code and Download Link on the next page!</h3>
]]></content:encoded>
			<wfw:commentRss>http://veritrope.com/tips/export-apple-mail-messages-and-notes-to-text-files/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Apple Mail to Evernote Applescript</title>
		<link>http://veritrope.com/tips/mail-to-evernote/</link>
		<comments>http://veritrope.com/tips/mail-to-evernote/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 21:46:18 +0000</pubDate>
		<dc:creator>Justin</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Apple Mail]]></category>
		<category><![CDATA[Applescript]]></category>
		<category><![CDATA[Evernote]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://veritrope.com/?p=1114</guid>
		<description><![CDATA[An Applescript to Archive Apple Mail Emails into Evernote]]></description>
			<content:encoded><![CDATA[<p>Have a Mac and want to move emails from Apple&#8217;s Mail application into Evernote quickly?  Use this AppleScript!<br />
<span id="more-1114"></span></p>
<p><img src="http://Veritrope.com/wp-content/uploads/2009/07/AppleEV1.jpg" alt="Apple Mail to Evernote" title="Apple Mail to Evernote" width="595" height="144" class="alignnone size-full wp-image-1803" /></p>
<h3>UPDATE &#8212; June 9, 2010</h3>
<p>I have just posted Version 1.3 of the script which marks a departure from previous releases in a couple of ways:</p>
<ol>
<li>The Script is now an App &#8212; Just double-click it to run, throw it into your Dock, or set it up to run with a keyboard shortcut&#8230; whatever floats your boat!</li>
<li>I&#8217;ve eliminated the Source Code from this post to make everything fit onto one short page &#8212; and also because, of the thousands of people who have downloaded the script, only a handful have shown any interest in playing around with it.  If you&#8217;re interested in helping me improve the script (or are geeky for AppleScripts), just <a href="http://veritrope.com/about-veritrope/contact/" >use the contact form to get in touch</a> and I&#8217;ll hook you up.</li>
</ol>
<h3>Features (Updated June 9, 2010) </h3>
<ul>
<li>This script exports a text copy of every selected email message in Mail into Evernote.</li>
<li><strong>UPDATED: This script will now also attempt to add attachments as well (see below for the &#8220;fine print&#8221; on this)</strong></li>
<li>When the script creates the note in Evernote, it uses the Subject line of the email as the title of the note, and it also uses the date the email was received as the &#8220;Creation Date&#8221; of the note. </li>
<li>The script also copies basic header information to the first line of the note (e.g.,  a working mailto: link for the message sender and also date/time information).</li>
<li>A direct link between the Note in Evernote and the Message in Mail is now functional!  Just click on the little arrow next to the message link in the &#8220;Source URL&#8221; area to be taken directly to the original message!<br />
<img src="http://Veritrope.com/wp-content/uploads/2009/05/evernotescreensnapz001.jpg" alt="evernotescreensnapz001" title="evernotescreensnapz001" class="alignnone size-full wp-image-1346" /></p>
<li>I have added a tag dialog box which lets you tag items on the way into Evernote.  If you have selected more than one email, the tag(s) you choose will be applied to all of the messages.</li>
<li>The script defaults to sending the messages to your Default Notebook.  As in the earlier version of the script, you can also retrieve an alphabetized list of your current Evernote Notebooks and select which notebook to archive your messages into.</li>
<li>Want to make a new notebook?  No problem &#8212; The script has a &#8220;Create New Notebook&#8221; button which will let you do that on the fly!</li>
<li>Automatic <a target="_blank" href="http://growl.info/" >Growl</a> detection has also been enabled which will save you a trip to the Script Editor to enable/disable it.</li>
</ul>
<h3>Current Limitations and Open Issues</h3>
<p>(Otherwise known as &#8220;Places Where You Could Help Out!&#8221;)</p>
<ol>
<li>Text of emails only &#8212; not HTML (yet&#8230;)</li>
<li>Evernote seems to have stalled in their AppleScript development so, unless I can figure out another way to do it, the attachments will have to be imported as separate notes.  (Try it on a couple of notes first to get the feel of things.)
<p>You can manually merge the notes later if you&#8217;re so inclined &#8211; FYI.</li>
<li>If you don’t already have an Evernote Premium account, this won’t magically allow you to save file types that aren’t a part of their free offering.</li>
</ol>
<h3>How to Install and Use</h3>
<p>Just highlight the email messages you want to send from Apple Mail to Evernote and run the script!</p>
<ol>
<li>You can highlight the email messages you want to archive into Evernote and then double-click this script file;</li>
<li>You can save this script to /Library/Scripts/Mail Scripts and launch it using the system-wide script menu from the Mac OS X menu bar (The script menu can be activated using the AppleScript Utility application).  Keyboard shortcuts can also be assigned to AppleScripts in the script menu using the System Preferences &#8220;Keyboard &#038; Mouse Settings&#8221;.</li>
<li>
If you&#8217;re importing a lot of items, I&#8217;d recommend that you change a few settings inside Evernote before beginning the import.  In the &#8220;Clipping&#8221; tab of the Preferences menu, uncheck the boxes in the section called &#8220;After a clip:&#8221;<br />
<img src="http://media.veritrope.com/wp-content/uploads/2009/10/disable-windows-300x205.png" alt="disable windows" title="disable windows" width="300" height="205" class="alignnone size-medium wp-image-2310" /><br />If the boxes are checked while importing a large number of items, Evernote will fill your screen with open windows and sound like it is repeatedly shooting you with a laser from a 70&#8217;s Sci-Fi movie.  Trust me &#8212; uncheck the boxes first and you&#8217;ll be much happier!  <img src='http://veritrope.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />
</li>
</ol>
<h3>FastScript link and support</h3>
<p>Do yourself a favor and <a target="_blank" href="http://www.red-sweater.com/fastscripts/index.html" >download and install FastScripts</a> from Red Sweater.  Triggering the script from the keyboard really supercharges the process &#8212; you&#8217;ll watch items <em>practically fly</em> into Evernote with a few keystrokes!  Here&#8217;s how you set it up:</p>
<ul>
<li> Copy script or an Alias to ~/Library/Scripts/Applications/Mail</li>
<li> Set up your keyboard shortcut in the FastScripts Preference menu</li>
</ul>
<p>For my FastScripts workflow, I am using ⌘ E (as in Evernote) for my global &#8220;Send to Evernote Shortcut&#8221;.  I use AppleScripts to move items from several programs into Evernote &#8212; FastScripts can detect which program I&#8217;m in and pick the appropriate script to create the note.  All I have to remember is ⌘ E!</p>
<p>If you use the FastScript Lite version (or the native OS X shortcuts), you&#8217;ll probably need to set up distinct keyboard shortcuts for each of your &#8220;Send to Evernote&#8221; scripts.</p>
<p><a href="http://veritrope.com/mint/pepper/tillkruess/downloads/tracker.php?url=http://media.veritrope.com/scripts/Apple_Mail_to_Evernote_1.3.zip&amp;remote" ><img src="http://media.veritrope.com/wp-content/images/download_button.png" alt="CLICK HERE TO DOWNLOAD" width="300"/></a></p>
<h1>Take One Minute to Keep This Site Going — Either With Your Comments or Contributions!</h1>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick"/>
<input type="hidden" name="hosted_button_id" value="5509847"/>
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"/>
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"/><br />
</form>
<p></p>
<h2>Found a bug in the script?</h2>
<h3><a href="http://veritrope.com/bug-report/" >Click Here To Submit Your Bug Report!</a></h3>
<h2><strong>Snow Leopard Users</strong></h2>
<h3><a href="http://veritrope.com/snow-leopard-services" >Click Here to Check Out Some Great New Services!</a></h3>
<p></p>
<h2>Want a script customized for your workflow?</h2>
<h3><a href="http://veritrope.com/contact" >Contact me to find out how to commission a script!</a></h3>
<p></p>
<h2>Interested in what other scripts are available for Evernote? </h2>
<h3><a href="http://veritrope.com/tips/evernote-applescript-resources" >Click here to see the latest list!</a></h3>
]]></content:encoded>
			<wfw:commentRss>http://veritrope.com/tips/mail-to-evernote/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)

Served from: veritrope.com @ 2010-08-01 04:52:27 -->