<?xml version="1.0"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>The Unofficial Apple Weblog (TUAW)</title><link>http://www.tuaw.com</link><description>The Unofficial Apple Weblog (TUAW)</description><image><url>http://www.blogsmithmedia.com/http://www.tuaw.com/media/feedlogo.gif</url><title>The Unofficial Apple Weblog (TUAW)</title><link>http://www.tuaw.com</link></image><language>en-us</language><copyright>Copyright 2009 Weblogs, Inc. The contents of this feed are available for non-commercial use only.</copyright><generator>Blogsmith http://www.blogsmith.com/</generator><item><title>AppleScript 1-2-3 now available from Peachpit Press</title><link>http://www.tuaw.com/2008/12/24/applescript-1-2-3-now-available-from-peachpit-press/</link><guid isPermaLink="true">http://www.tuaw.com/2008/12/24/applescript-1-2-3-now-available-from-peachpit-press/</guid><comments>http://www.tuaw.com/2008/12/24/applescript-1-2-3-now-available-from-peachpit-press/#comments</comments><description><![CDATA[<p>Filed under: <a href="http://www.tuaw.com/category/books/" rel="tag">Books</a>, <a href="http://www.tuaw.com/category/developer/" rel="tag">Developer</a>, <a href="http://www.tuaw.com/category/applescript/" rel="tag">AppleScript</a></p><img vspace="8" hspace="8" border="1" align="right" src="http://www.blogcdn.com/www.tuaw.com/media/2008/12/applescript123.jpg" alt="" />Mac users rejoice! Santa brought just what you wanted, a new book about <a href="http://www.tuaw.com/tag/applescript/">AppleScript</a> by the two of the top wizards of the Mac automation world.<br /><br />Apple's Product Manager for Automation, Sol Soghoian, and Bill Cheeseman, who is a noted developer in his own right, have announced the publication of <a href="http://www.peachpit.com/store/product.aspx?isbn=0321149319" target="_blank">AppleScript 1-2-3 by Peachpit Press</a>. This book guides AppleScript newbies through an easy and enjoyable process of understanding how to use the Mac's automation language. Soghoian and Cheeseman based the book on ideas and scripts that have been used at hands-on seminars taught at Macworld Expo. <br /><br />While the book can take someone with no prior knowledge of programming or AppleScript and turn them into a confident Mac automator, experienced scripters will find a lot to like about AppleScript 1-2-3 as well. The authors have made a copy of the first chapter available on the <a href="http://www.apple.com/applescript/firsttutorial/" target="_blank">Apple AppleScript website</a>. During Macworld Expo, the Peachpit website will feature a "tip of the day" from the book. The book will be available at the Peachpit booth as well (#812).<br /><br />The book is available for pre-order now (US$44.99) through Peachpit, and will start appearing in bookstores in January. There's also an <a href="http://www.peachpit.com/store/product.aspx?isbn=0321496183" target="_blank">Adobe Reader version</a> of the text that is available now (US$35.99) for download.<p style="padding:5px;background:#ddd;border:1px solid #ccc;clear:both;"><a href="http://www.tuaw.com/2008/12/24/applescript-1-2-3-now-available-from-peachpit-press/">AppleScript 1-2-3 now available from Peachpit Press</a> originally appeared on <a href="http://www.tuaw.com">The Unofficial Apple Weblog (TUAW)</a> on Wed, 24 Dec 2008 12:30:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.</p><p style="padding:5px;background:#ffffcc;border:1px solid #ffff99;clear:both;"><a href="http://www.tuaw.com"><img src="http://www.tuaw.com/media/feedlogo.gif" alt="The Unofficial Apple Weblog (TUAW)" style="float:left;padding:0 5px 5px 0;" /></a><a href="http://www.tuaw.com/2008/12/24/applescript-1-2-3-now-available-from-peachpit-press/">AppleScript 1-2-3 now available from Peachpit Press</a> originally appeared on <a href="http://www.tuaw.com">The Unofficial Apple Weblog (TUAW)</a> on Wed, 24 Dec 2008 12:30:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.<br style="clear:both;"></p><p style="clear: both; padding: 8px 0 0 0; height: 2px; font-size: 1px; border: 0; margin: 0; padding: 0;"> </p><p><a href=http://www.peachpit.com/store/product.aspx?isbn=0321149319>Read</a> | <a href="http://www.tuaw.com/2008/12/24/applescript-1-2-3-now-available-from-peachpit-press/" rel="bookmark" title="Permanent link to this entry">Permalink</a> | <a href="http://www.tuaw.com/forward/1410932/" title="Send this entry to a friend via email">Email this</a> | <a href="http://www.tuaw.com/2008/12/24/applescript-1-2-3-now-available-from-peachpit-press/#comments" title="View reader comments on this entry">Comments</a></p>]]></description><category>applescript</category><category>book</category><category>peachpit</category><dc:creator>Steven Sande</dc:creator><pubDate>Wed, 24 Dec 2008 12:30:00 EST</pubDate></item><item><title>AppleScript: Creating To-Dos in iCal</title><link>http://www.tuaw.com/2008/08/05/applescript-creating-to-dos-in-ical/</link><guid isPermaLink="true">http://www.tuaw.com/2008/08/05/applescript-creating-to-dos-in-ical/</guid><comments>http://www.tuaw.com/2008/08/05/applescript-creating-to-dos-in-ical/#comments</comments><description><![CDATA[<p>Filed under: <a href="http://www.tuaw.com/category/features/" rel="tag">Features</a>, <a href="http://www.tuaw.com/category/how-tos/" rel="tag">How-tos</a>, <a href="http://www.tuaw.com/category/applescript/" rel="tag">AppleScript</a></p><div align="center"><img width="425" vspace="8" hspace="8" height="231" border="0" alt="" src="http://www.blogcdn.com/www.tuaw.com/media/2008/08/new-ical-todo-.jpg" /><br /></div>
<div style="float: left; margin-right: 10px; margin-bottom: 2px;"> <script type="text/javascript"> digg_url = 'http://www.tuaw.com/2008/08/05/applescript-creating-to-dos-in-ical/'; </script> <script src="http://digg.com/tools/diggthis.js" type="text/javascript"> </script> </div>
Recently, a <a href="http://www.tuaw.com/bloggers/mat-lu">friend</a> asked me to create an <a href="http://tuaw.com/category/AppleScript">AppleScript</a> that would allow him to automate To-Dos with a Mail.app mail rule. I immediately rose to the occasion because this was a cool idea: Mail.app could run the script when you get an ebill, for instance, for your car payment. The script would then create an iCal To-Do for "Pay your car payment, now!" <br /><br /><strong>The script</strong><br /><tt>set theSumm to "Pay My Bill Soon!"<br />set dueDate to (current date) + 10 * days<br />set theUrl to "http://www.paymybillexample.com"<br />set thepriority to 1<br /><br />tell application "iCal"<br /> make todo at end of events of (item 1 of every calendar) with properties {summary:theSumm, due date:dueDate, url:theUrl, priority:thepriority}<br />end tell</tt> <br /><br /><strong>Customizing the script</strong><br />To customize the To-Do's title, fill in the text you want, within the parenthesis on line 1. To Change the due date, change the "10" in line 2 to the number of days until it is due. If you want to change to weeks or months, use the appropriate wordage instead of "days" at the end of line 2. To change the URL, paste a URL in the parenthesis on line 3. <br /><br />By default, the script will set the newly created To-Do to have a priority of 1, however, you can change this to your priority preference.<br /><br />Continue reading to learn how to integrate the To-Dos with a Mail.app mail rule.<p><a href="http://www.tuaw.com/2008/08/05/applescript-creating-to-dos-in-ical/" rel="bookmark">Continue reading <em>AppleScript: Creating To-Dos in iCal</em></a></p><p style="padding:5px;background:#ddd;border:1px solid #ccc;clear:both;"><a href="http://www.tuaw.com/2008/08/05/applescript-creating-to-dos-in-ical/">AppleScript: Creating To-Dos in iCal</a> originally appeared on <a href="http://www.tuaw.com">The Unofficial Apple Weblog (TUAW)</a> on Tue, 05 Aug 2008 13:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.</p><p style="padding:5px;background:#ffffcc;border:1px solid #ffff99;clear:both;"><a href="http://www.tuaw.com"><img src="http://www.tuaw.com/media/feedlogo.gif" alt="The Unofficial Apple Weblog (TUAW)" style="float:left;padding:0 5px 5px 0;" /></a><a href="http://www.tuaw.com/2008/08/05/applescript-creating-to-dos-in-ical/">AppleScript: Creating To-Dos in iCal</a> originally appeared on <a href="http://www.tuaw.com">The Unofficial Apple Weblog (TUAW)</a> on Tue, 05 Aug 2008 13:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.<br style="clear:both;"></p><p style="clear: both; padding: 8px 0 0 0; height: 2px; font-size: 1px; border: 0; margin: 0; padding: 0;"> </p><p><a href=http://tuaw.com/category/AppleScript>Read</a> | <a href="http://www.tuaw.com/2008/08/05/applescript-creating-to-dos-in-ical/" rel="bookmark" title="Permanent link to this entry">Permalink</a> | <a href="http://www.tuaw.com/forward/1273417/" title="Send this entry to a friend via email">Email this</a> | <a href="http://www.tuaw.com/2008/08/05/applescript-creating-to-dos-in-ical/#comments" title="View reader comments on this entry">Comments</a></p>]]></description><category>AppleScript</category><category>Mac Automation</category><category>MacAutomation</category><category>Mail.app</category><category>To-Do</category><category>Todos</category><dc:creator>Cory Bohon</dc:creator><pubDate>Tue, 05 Aug 2008 13:00:00 EST</pubDate></item><item><title>AppleScript: Taking screenshots</title><link>http://www.tuaw.com/2008/07/07/applescript-taking-screenshots/</link><guid isPermaLink="true">http://www.tuaw.com/2008/07/07/applescript-taking-screenshots/</guid><comments>http://www.tuaw.com/2008/07/07/applescript-taking-screenshots/#comments</comments><description><![CDATA[<p>Filed under: <a href="http://www.tuaw.com/category/features/" rel="tag">Features</a>, <a href="http://www.tuaw.com/category/how-tos/" rel="tag">How-tos</a>, <a href="http://www.tuaw.com/category/applescript/" rel="tag">AppleScript</a></p><div align="center"><img width="425" vspace="8" hspace="8" height="208" border="0" src="http://www.blogcdn.com/www.tuaw.com/media/2008/07/take-screenshot-in-applescript-script-editor_screenshotsinapplescript.jpg" alt="" /><br /></div>
<div style="float: left; margin-right: 10px; margin-bottom: 2px;"> <script type="text/javascript"> digg_url = 'http://www.tuaw.com/2008/07/07/applescript-taking-screenshots/'; </script> <script src="http://digg.com/tools/diggthis.js" type="text/javascript"> </script> </div>
<br />Last week, <a href="http://www.tuaw.com/2008/07/04/mac-101-capture-sharp-screenshots/">Dave mentioned</a> that you can change the file type used system-wide for screenshots. However, some people are afraid of using Terminal.app to muck around with their Mac. In this week's AppleScript article, I am going to show you how to take screenshots and change their file type using an AppleScript.<br /><br /><strong>The AppleScript</strong><br /><tt>property N : 0<br />set N to N + 1<br />set picPath to ((POSIX path of (path to desktop)) &amp; "Picture_" &amp; N &amp; ".png") as string<br />do shell script "screencapture -tjpg " &amp; quoted form of picPath<br /><br /></tt><br /><strong>Using the AppleScript</strong><br />Open the ScriptEditor (/Applications/AppleScript/ScriptEditor.app). Copy/paste the AppleScript into the script edtitor and click the run button at the top. You will hear the camera shutter sound and a picture will be taken and saved to your desktop. <br /><br />This script comes in handy when you want to take a screenshot in a different format. To do this, just change the ".png" file type to whatever you might want (say, .jpg, .tiff, etc.). When you re-run the script, the new file type will be associated with the capture image. <br /><br /><br />Continue reading to learn how to save this script.<p><a href="http://www.tuaw.com/2008/07/07/applescript-taking-screenshots/" rel="bookmark">Continue reading <em>AppleScript: Taking screenshots</em></a></p><p style="padding:5px;background:#ddd;border:1px solid #ccc;clear:both;"><a href="http://www.tuaw.com/2008/07/07/applescript-taking-screenshots/">AppleScript: Taking screenshots</a> originally appeared on <a href="http://www.tuaw.com">The Unofficial Apple Weblog (TUAW)</a> on Mon, 07 Jul 2008 09:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.</p><p style="padding:5px;background:#ffffcc;border:1px solid #ffff99;clear:both;"><a href="http://www.tuaw.com"><img src="http://www.tuaw.com/media/feedlogo.gif" alt="The Unofficial Apple Weblog (TUAW)" style="float:left;padding:0 5px 5px 0;" /></a><a href="http://www.tuaw.com/2008/07/07/applescript-taking-screenshots/">AppleScript: Taking screenshots</a> originally appeared on <a href="http://www.tuaw.com">The Unofficial Apple Weblog (TUAW)</a> on Mon, 07 Jul 2008 09:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.<br style="clear:both;"></p><p style="clear: both; padding: 8px 0 0 0; height: 2px; font-size: 1px; border: 0; margin: 0; padding: 0;"> </p><p><a href=http://tuaw.com/category/AppleScript>Read</a> | <a href="http://www.tuaw.com/2008/07/07/applescript-taking-screenshots/" rel="bookmark" title="Permanent link to this entry">Permalink</a> | <a href="http://www.tuaw.com/forward/1246581/" title="Send this entry to a friend via email">Email this</a> | <a href="http://www.tuaw.com/2008/07/07/applescript-taking-screenshots/#comments" title="View reader comments on this entry">Comments</a></p>]]></description><category>AppleScript</category><category>screen capture</category><category>ScreenCapture</category><category>screenshots</category><category>Script Editor</category><category>ScriptEditor</category><dc:creator>Cory Bohon</dc:creator><pubDate>Mon, 07 Jul 2008 09:00:00 EST</pubDate></item><item><title>Simplify media transcription with hotkeys and AppleScript</title><link>http://www.tuaw.com/2008/06/26/simplify-media-transcription-with-hotkeys-and-applescript/</link><guid isPermaLink="true">http://www.tuaw.com/2008/06/26/simplify-media-transcription-with-hotkeys-and-applescript/</guid><comments>http://www.tuaw.com/2008/06/26/simplify-media-transcription-with-hotkeys-and-applescript/#comments</comments><description><![CDATA[<p>Filed under: <a href="http://www.tuaw.com/category/how-tos/" rel="tag">How-tos</a>, <a href="http://www.tuaw.com/category/productivity/" rel="tag">Productivity</a>, <a href="http://www.tuaw.com/category/applescript/" rel="tag">AppleScript</a></p><p><img vspace="8" hspace="8" border="0" align="right" alt="" src="http://www.blogcdn.com/www.tuaw.com/media/2008/06/transcription.jpg" />I've found myself transcribing different types of media lately; primarily recorded Skype conversations and footage from interviews. I do a lot of work in <a href="http://www.literatureandlatte.com/scrivener.html" title="Literature and Latte - Scrivener">Scrivener</a>, an application so enjoyable that it makes me want to write a lot more than I do. Scrivener allows for a split pane editor with a QuickTime media file loaded in one pane, and your current document in the other. While you type you can hit Shift-Space to start and stop the media. I loved it, but I wanted to take it to another level. There are applications specifically designed for this, but why not have a system-wide, works-with-anything solution?</p>
<p>Find out how I did it after the jump.<br /></p><p><a href="http://www.tuaw.com/2008/06/26/simplify-media-transcription-with-hotkeys-and-applescript/" rel="bookmark">Continue reading <em>Simplify media transcription with hotkeys and AppleScript</em></a></p><p style="padding:5px;background:#ddd;border:1px solid #ccc;clear:both;"><a href="http://www.tuaw.com/2008/06/26/simplify-media-transcription-with-hotkeys-and-applescript/">Simplify media transcription with hotkeys and AppleScript</a> originally appeared on <a href="http://www.tuaw.com">The Unofficial Apple Weblog (TUAW)</a> on Thu, 26 Jun 2008 15:30:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.</p><p style="padding:5px;background:#ffffcc;border:1px solid #ffff99;clear:both;"><a href="http://www.tuaw.com"><img src="http://www.tuaw.com/media/feedlogo.gif" alt="The Unofficial Apple Weblog (TUAW)" style="float:left;padding:0 5px 5px 0;" /></a><a href="http://www.tuaw.com/2008/06/26/simplify-media-transcription-with-hotkeys-and-applescript/">Simplify media transcription with hotkeys and AppleScript</a> originally appeared on <a href="http://www.tuaw.com">The Unofficial Apple Weblog (TUAW)</a> on Thu, 26 Jun 2008 15:30:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.<br style="clear:both;"></p><p style="clear: both; padding: 8px 0 0 0; height: 2px; font-size: 1px; border: 0; margin: 0; padding: 0;"> </p><p><a href=http://www.shadowlab.org/Software/software.php?sign=Sprk>Read</a> | <a href="http://www.tuaw.com/2008/06/26/simplify-media-transcription-with-hotkeys-and-applescript/" rel="bookmark" title="Permanent link to this entry">Permalink</a> | <a href="http://www.tuaw.com/forward/1234554/" title="Send this entry to a friend via email">Email this</a> | <a href="http://www.tuaw.com/2008/06/26/simplify-media-transcription-with-hotkeys-and-applescript/#comments" title="View reader comments on this entry">Comments</a></p>]]></description><category>applescript</category><category>media</category><category>spark</category><category>transcription</category><dc:creator>Brett Terpstra</dc:creator><pubDate>Thu, 26 Jun 2008 15:30:00 EST</pubDate></item><item><title>AppleScript: Integrating shell scripts</title><link>http://www.tuaw.com/2008/06/23/applescript-integrating-shell-scripts/</link><guid isPermaLink="true">http://www.tuaw.com/2008/06/23/applescript-integrating-shell-scripts/</guid><comments>http://www.tuaw.com/2008/06/23/applescript-integrating-shell-scripts/#comments</comments><description><![CDATA[<p>Filed under: <a href="http://www.tuaw.com/category/features/" rel="tag">Features</a>, <a href="http://www.tuaw.com/category/how-tos/" rel="tag">How-tos</a>, <a href="http://www.tuaw.com/category/applescript/" rel="tag">AppleScript</a></p><div align="left">
<div style="text-align: center;"><img width="425" vspace="8" hspace="8" height="159" border="1" src="http://www.blogcdn.com/www.tuaw.com/media/2008/06/do_shell_script_application_eject-disc.jpg" alt="" /><br /></div>
<div style="float: left; margin-right: 10px; margin-bottom: 2px;"> <script type="text/javascript"> digg_url = 'http://www.tuaw.com/2008/06/23/applescript-integrating-shell-scripts/'; </script> <script src="http://digg.com/tools/diggthis.js" type="text/javascript"> </script> </div>
We've talked about <a href="http://tuaw.com/tag/AppleScript">AppleScript</a> how-tos before. AppleScript is fun and all, but what if you already know how to write shell scripts? Well, did you know that by integrating shells scripts into AppleScript, you can create simple applications that do useful things? It's true, and I am going to show you how. <br /></div>
<br />Continue reading to learn how to integrate shell scripts into AppleScripts.<p><a href="http://www.tuaw.com/2008/06/23/applescript-integrating-shell-scripts/" rel="bookmark">Continue reading <em>AppleScript: Integrating shell scripts</em></a></p><p style="padding:5px;background:#ddd;border:1px solid #ccc;clear:both;"><a href="http://www.tuaw.com/2008/06/23/applescript-integrating-shell-scripts/">AppleScript: Integrating shell scripts</a> originally appeared on <a href="http://www.tuaw.com">The Unofficial Apple Weblog (TUAW)</a> on Mon, 23 Jun 2008 09:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.</p><p style="padding:5px;background:#ffffcc;border:1px solid #ffff99;clear:both;"><a href="http://www.tuaw.com"><img src="http://www.tuaw.com/media/feedlogo.gif" alt="The Unofficial Apple Weblog (TUAW)" style="float:left;padding:0 5px 5px 0;" /></a><a href="http://www.tuaw.com/2008/06/23/applescript-integrating-shell-scripts/">AppleScript: Integrating shell scripts</a> originally appeared on <a href="http://www.tuaw.com">The Unofficial Apple Weblog (TUAW)</a> on Mon, 23 Jun 2008 09:00:00 EST.  Please see our <a href="http://www.weblogsinc.com/feed-terms/">terms for use of feeds</a>.<br style="clear:both;"></p><p style="clear: both; padding: 8px 0 0 0; height: 2px; font-size: 1px; border: 0; margin: 0; padding: 0;"> </p><p><a href=http://tuaw.com/category/AppleScript>Read</a> | <a href="http://www.tuaw.com/2008/06/23/applescript-integrating-shell-scripts/" rel="bookmark" title="Permanent link to this entry">Permalink</a> | <a href="http://www.tuaw.com/forward/1233212/" title="Send this entry to a friend via email">Email this</a> | <a href="http://www.tuaw.com/2008/06/23/applescript-integrating-shell-scripts/#comments" title="View reader comments on this entry">Comments</a></p>]]></description><category>AppleScript</category><category>Automation</category><category>integrate script</category><category>IntegrateScript</category><category>Mac Automation</category><category>MacAutomation</category><category>scripting</category><category>shell script</category><category>ShellScript</category><dc:creator>Cory Bohon</dc:creator><pubDate>Mon, 23 Jun 2008 09:00:00 EST</pubDate></item></channel></rss>