<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: TextExpander: Date and Time Math</title>
	<atom:link href="http://smileonmymac.net/blog/2008/10/28/textexpander-date-and-time-math/feed/" rel="self" type="application/rss+xml" />
	<link>http://smileonmymac.net/blog/2008/10/28/textexpander-date-and-time-math/</link>
	<description>News, Photos, and User Tips from The SmileOnMyMac Team</description>
	<lastBuildDate>Thu, 04 Mar 2010 05:25:53 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jim</title>
		<link>http://smileonmymac.net/blog/2008/10/28/textexpander-date-and-time-math/comment-page-1/#comment-44919</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Mon, 31 Aug 2009 10:44:16 +0000</pubDate>
		<guid isPermaLink="false">http://smileonmymac.net/blog/?p=167#comment-44919</guid>
		<description>I wanted to do the same thing as Jeff--I send out a lot of form emails requesting a response by a date three business days in the future. I hunted around a bit and didn&#039;t find anything, so here&#039;s what I cobbled together. This returns a date three business days in the future in the form &quot;Monday, January 1&quot;:

set currentDate to current date
set today to weekday of currentDate
if today is Monday then set dueDate to currentDate + (3 * days)
if today is Tuesday then set dueDate to currentDate + (3 * days)
if today is Wednesday then set dueDate to currentDate + (5 * days)
if today is Thursday then set dueDate to currentDate + (5 * days)
if today is Friday then set dueDate to currentDate + (5 * days)
if today is Saturday then set dueDate to currentDate + (4 * days)
if today is Sunday then set dueDate to currentDate + (3 * days)
return ((weekday of dueDate) &amp; &quot;, &quot; &amp; (month of dueDate) &amp; &quot; &quot; &amp; (day of dueDate)) as text

There are probably simpler or more elegant ways, but this seems to do the trick--if I send something out on Monday it gives me Thursday, if I send something out on Thursday it gives me next Tuesday, etc. If you want five business days in the future, or some other number, you can modify the numbers in each line accordingly to get the right day in the future for each weekday. If you want the date in a different format you can do that too by modifying the last line. (I think there are ways to return months as integers and such if you want something like 1/1/2010.) Save this as an AppleScript snippet in TextExpander and then insert it within another snippet.</description>
		<content:encoded><![CDATA[<p>I wanted to do the same thing as Jeff&#8211;I send out a lot of form emails requesting a response by a date three business days in the future. I hunted around a bit and didn&#8217;t find anything, so here&#8217;s what I cobbled together. This returns a date three business days in the future in the form &#8220;Monday, January 1&#8243;:</p>
<p>set currentDate to current date<br />
set today to weekday of currentDate<br />
if today is Monday then set dueDate to currentDate + (3 * days)<br />
if today is Tuesday then set dueDate to currentDate + (3 * days)<br />
if today is Wednesday then set dueDate to currentDate + (5 * days)<br />
if today is Thursday then set dueDate to currentDate + (5 * days)<br />
if today is Friday then set dueDate to currentDate + (5 * days)<br />
if today is Saturday then set dueDate to currentDate + (4 * days)<br />
if today is Sunday then set dueDate to currentDate + (3 * days)<br />
return ((weekday of dueDate) &amp; &#8220;, &#8221; &amp; (month of dueDate) &amp; &#8221; &#8221; &amp; (day of dueDate)) as text</p>
<p>There are probably simpler or more elegant ways, but this seems to do the trick&#8211;if I send something out on Monday it gives me Thursday, if I send something out on Thursday it gives me next Tuesday, etc. If you want five business days in the future, or some other number, you can modify the numbers in each line accordingly to get the right day in the future for each weekday. If you want the date in a different format you can do that too by modifying the last line. (I think there are ways to return months as integers and such if you want something like 1/1/2010.) Save this as an AppleScript snippet in TextExpander and then insert it within another snippet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jean</title>
		<link>http://smileonmymac.net/blog/2008/10/28/textexpander-date-and-time-math/comment-page-1/#comment-39107</link>
		<dc:creator>Jean</dc:creator>
		<pubDate>Thu, 02 Apr 2009 03:23:26 +0000</pubDate>
		<guid isPermaLink="false">http://smileonmymac.net/blog/?p=167#comment-39107</guid>
		<description>Ron: Interesting question. Can you send it to textexpander@smileonmymac.com?Our support team can help you out with that.</description>
		<content:encoded><![CDATA[<p>Ron: Interesting question. Can you send it to <a href="mailto:textexpander@smileonmymac.com">textexpander@smileonmymac.com</a>?Our support team can help you out with that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ron Belisle</title>
		<link>http://smileonmymac.net/blog/2008/10/28/textexpander-date-and-time-math/comment-page-1/#comment-39096</link>
		<dc:creator>Ron Belisle</dc:creator>
		<pubDate>Wed, 01 Apr 2009 13:52:25 +0000</pubDate>
		<guid isPermaLink="false">http://smileonmymac.net/blog/?p=167#comment-39096</guid>
		<description>Love TextExpander.  Thanks for making my life easier.

Question.  In my spreadsheet program (Numbers) I create invoices in Japanese for my clients in Japan.  On the first page of the invoice, I insert the date using TextExander using %Y年 %m月 %d日.  It works and inserts the date like this -- 2009年 04月 01日 -- which is correct.  Then on the 2nd and third pages, I would like the date to be one day less, for example, 2009年 03月 31日.  Is this possible to automate the date insertions on the second and third pages of my invoice using TextExpander?</description>
		<content:encoded><![CDATA[<p>Love TextExpander.  Thanks for making my life easier.</p>
<p>Question.  In my spreadsheet program (Numbers) I create invoices in Japanese for my clients in Japan.  On the first page of the invoice, I insert the date using TextExander using %Y年 %m月 %d日.  It works and inserts the date like this &#8212; 2009年 04月 01日 &#8212; which is correct.  Then on the 2nd and third pages, I would like the date to be one day less, for example, 2009年 03月 31日.  Is this possible to automate the date insertions on the second and third pages of my invoice using TextExpander?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://smileonmymac.net/blog/2008/10/28/textexpander-date-and-time-math/comment-page-1/#comment-29824</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Wed, 17 Dec 2008 07:06:41 +0000</pubDate>
		<guid isPermaLink="false">http://smileonmymac.net/blog/?p=167#comment-29824</guid>
		<description>I love Text Expander. I&#039;m wondering though if with date and time math I can insert a date that&#039;s say, 5 BUSINESS days, after the current date. Possible? Is there a way to build this myself via Applescript if not? Any suggestions would be great!</description>
		<content:encoded><![CDATA[<p>I love Text Expander. I&#8217;m wondering though if with date and time math I can insert a date that&#8217;s say, 5 BUSINESS days, after the current date. Possible? Is there a way to build this myself via Applescript if not? Any suggestions would be great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Save keystokes with TextExpander &#124; Smoking Apples</title>
		<link>http://smileonmymac.net/blog/2008/10/28/textexpander-date-and-time-math/comment-page-1/#comment-27931</link>
		<dc:creator>Save keystokes with TextExpander &#124; Smoking Apples</dc:creator>
		<pubDate>Wed, 05 Nov 2008 17:10:58 +0000</pubDate>
		<guid isPermaLink="false">http://smileonmymac.net/blog/?p=167#comment-27931</guid>
		<description>[...] to insert the time, the clipboard or even another snippet. New in version 2.5, you can insert a conditional date or time. So if you keep having to tell people to give back your cash 1 week later, instead of hunting for [...]</description>
		<content:encoded><![CDATA[<p>[...] to insert the time, the clipboard or even another snippet. New in version 2.5, you can insert a conditional date or time. So if you keep having to tell people to give back your cash 1 week later, instead of hunting for [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zettt</title>
		<link>http://smileonmymac.net/blog/2008/10/28/textexpander-date-and-time-math/comment-page-1/#comment-27779</link>
		<dc:creator>Zettt</dc:creator>
		<pubDate>Fri, 31 Oct 2008 22:10:12 +0000</pubDate>
		<guid isPermaLink="false">http://smileonmymac.net/blog/?p=167#comment-27779</guid>
		<description>Oh Sorry... I didn&#039;t want to say anything to hurt you.</description>
		<content:encoded><![CDATA[<p>Oh Sorry&#8230; I didn&#8217;t want to say anything to hurt you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Duncan</title>
		<link>http://smileonmymac.net/blog/2008/10/28/textexpander-date-and-time-math/comment-page-1/#comment-27757</link>
		<dc:creator>Duncan</dc:creator>
		<pubDate>Fri, 31 Oct 2008 07:00:14 +0000</pubDate>
		<guid isPermaLink="false">http://smileonmymac.net/blog/?p=167#comment-27757</guid>
		<description>I adore Text Expander, but now I am totally IN LOVE. Thanks for Version 2.5 crew. TE is my all time fave app on my mac.
Characters Saved: 1,425,757
Keep in Happy Places,
Duncan</description>
		<content:encoded><![CDATA[<p>I adore Text Expander, but now I am totally IN LOVE. Thanks for Version 2.5 crew. TE is my all time fave app on my mac.<br />
Characters Saved: 1,425,757<br />
Keep in Happy Places,<br />
Duncan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jean</title>
		<link>http://smileonmymac.net/blog/2008/10/28/textexpander-date-and-time-math/comment-page-1/#comment-27744</link>
		<dc:creator>Jean</dc:creator>
		<pubDate>Thu, 30 Oct 2008 23:20:03 +0000</pubDate>
		<guid isPermaLink="false">http://smileonmymac.net/blog/?p=167#comment-27744</guid>
		<description>@Zettt Ich nehme es an, daß Du mein Deutsch nicht besonders gut findest.Schade. Ich habe ein Jahr in Freiburg studiert, aber man kann ein bißle vergessen. ;-)</description>
		<content:encoded><![CDATA[<p>@Zettt Ich nehme es an, daß Du mein Deutsch nicht besonders gut findest.Schade. Ich habe ein Jahr in Freiburg studiert, aber man kann ein bißle vergessen. <img src='http://smileonmymac.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zettt</title>
		<link>http://smileonmymac.net/blog/2008/10/28/textexpander-date-and-time-math/comment-page-1/#comment-27743</link>
		<dc:creator>Zettt</dc:creator>
		<pubDate>Thu, 30 Oct 2008 22:57:57 +0000</pubDate>
		<guid isPermaLink="false">http://smileonmymac.net/blog/?p=167#comment-27743</guid>
		<description>@Jean I love these Babelfish-like translations ;) I think i said that already. Just checking out the auto-corrections. I think the first one will be ready by next month, which is in a few days. ;) 

As you said. People can subscribe and i can improve them in the background. (Which is amazing!)</description>
		<content:encoded><![CDATA[<p>@Jean I love these Babelfish-like translations <img src='http://smileonmymac.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  I think i said that already. Just checking out the auto-corrections. I think the first one will be ready by next month, which is in a few days. <img src='http://smileonmymac.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  </p>
<p>As you said. People can subscribe and i can improve them in the background. (Which is amazing!)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jean</title>
		<link>http://smileonmymac.net/blog/2008/10/28/textexpander-date-and-time-math/comment-page-1/#comment-27703</link>
		<dc:creator>Jean</dc:creator>
		<pubDate>Wed, 29 Oct 2008 22:31:16 +0000</pubDate>
		<guid isPermaLink="false">http://smileonmymac.net/blog/?p=167#comment-27703</guid>
		<description>@Zettt: ich kann gar nicht dafür warten. (Trans. I can hardly wait--for the German autocorrect snippets!)</description>
		<content:encoded><![CDATA[<p>@Zettt: ich kann gar nicht dafür warten. (Trans. I can hardly wait&#8211;for the German autocorrect snippets!)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
