<?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"
	>

<channel>
	<title>Surgical Diversions</title>
	<atom:link href="http://thefragens.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://thefragens.com/blog</link>
	<description>My time out of the operating room.</description>
	<pubDate>Fri, 05 Sep 2008 22:40:10 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
	<language>en</language>
			<item>
		<title>Biden VEEP??</title>
		<link>http://thefragens.com/blog/2008/08/biden-veep/</link>
		<comments>http://thefragens.com/blog/2008/08/biden-veep/#comments</comments>
		<pubDate>Sat, 23 Aug 2008 19:45:53 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
		
		<category><![CDATA[politics]]></category>

		<guid isPermaLink="false">http://thefragens.com/blog/?p=534</guid>
		<description><![CDATA[Joe Biden the 6-term Senator from Delware is Obama&#8217;s choice for VEEP. I&#8217;m wondering how this old guard Washington insider adds to Obama&#8217;s message of change.

Personally I think Bill Richardson would have been a better choice. Adds the foreign policy cred without all of Biden&#8217;s baggage.
]]></description>
			<content:encoded><![CDATA[<p>Joe Biden the 6-term Senator from Delware is Obama&#8217;s choice for VEEP. I&#8217;m wondering how this old guard Washington insider adds to Obama&#8217;s message of change.</p>

<p>Personally I think Bill Richardson would have been a better choice. Adds the foreign policy cred without all of Biden&#8217;s baggage.</p>
]]></content:encoded>
			<wfw:commentRss>http://thefragens.com/blog/2008/08/biden-veep/feed/</wfw:commentRss>
		</item>
		<item>
		<title>iPhone 2.0.2</title>
		<link>http://thefragens.com/blog/2008/08/iphone-202/</link>
		<comments>http://thefragens.com/blog/2008/08/iphone-202/#comments</comments>
		<pubDate>Sat, 23 Aug 2008 19:43:14 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
		
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://thefragens.com/blog/?p=532</guid>
		<description><![CDATA[I don&#8217;t know what Apple fixed in the 2.0.2 software update for the iPhone but whatever the &#8220;bug fixes&#8221; were have noticably decreased my battery life.

I&#8217;m using a 1G iPhone with v2.0.2 OS


Bluetooth - OFF
WiFi - ON
Push - OFF
Fetch New Data - 30 min
Location Services (now OFF to see if I can improve till next [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t know what Apple fixed in the 2.0.2 software update for the iPhone but whatever the &#8220;bug fixes&#8221; were have noticably decreased my battery life.</p>

<p>I&#8217;m using a 1G iPhone with v2.0.2 OS</p>

<ul>
<li>Bluetooth - OFF</li>
<li>WiFi - ON</li>
<li>Push - OFF</li>
<li>Fetch New Data - 30 min</li>
<li>Location Services (now OFF to see if I can improve till next update)</li>
</ul>

<p>Please hurry Apple.</p>
]]></content:encoded>
			<wfw:commentRss>http://thefragens.com/blog/2008/08/iphone-202/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Doctors Cannot Withhold Care From Gays</title>
		<link>http://thefragens.com/blog/2008/08/doctors-cannot-withhold-care-from-gays/</link>
		<comments>http://thefragens.com/blog/2008/08/doctors-cannot-withhold-care-from-gays/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 00:12:23 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
		
		<category><![CDATA[medicine]]></category>

		<guid isPermaLink="false">http://thefragens.com/blog/?p=528</guid>
		<description><![CDATA[The California Supreme Court has just handed down a ruling. Discrimination is bad, I get it and it shouldn&#8217;t happen.

I&#8217;m not going to argue the merits of the case but I&#8217;m curious to know if anyone else thinks that this decision might be interpreted to mean that physicians no longer can say no to anyone [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.foxnews.com/story/0,2933,405801,00.html">California Supreme Court has just handed down a ruling</a>. Discrimination is bad, I get it and it shouldn&#8217;t happen.</p>

<p>I&#8217;m not going to argue the merits of the case but I&#8217;m curious to know if anyone else thinks that this decision might be interpreted to mean that physicians no longer can say no to anyone for any reason.</p>
]]></content:encoded>
			<wfw:commentRss>http://thefragens.com/blog/2008/08/doctors-cannot-withhold-care-from-gays/feed/</wfw:commentRss>
		</item>
		<item>
		<title>iCal - Exchange Time Zone Fix - Chapter 2</title>
		<link>http://thefragens.com/blog/2008/08/ical-exchange-time-zone-fix-chapter-2/</link>
		<comments>http://thefragens.com/blog/2008/08/ical-exchange-time-zone-fix-chapter-2/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 21:40:45 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
		
		<category><![CDATA[AppleScript]]></category>

		<category><![CDATA[code]]></category>

		<category><![CDATA[mac-osx]]></category>

		<guid isPermaLink="false">http://thefragens.com/blog/?p=524</guid>
		<description><![CDATA[It was a few months ago that I originally wrote the first incarnation of the MailExchange2iCal script. Since then I&#8217;ve been in contact with a few users trying to make it work for them and I&#8217;ve found a number of peculiarities in the types of email invites sent by Exchange/Outlook. The biggest problem was that [...]]]></description>
			<content:encoded><![CDATA[<p>It was a few months ago that I originally wrote the first incarnation of the <a href="http://thefragens.com/blog/2008/04/ical-exchange-time-zone-fix/">MailExchange2iCal script</a>. Since then I&#8217;ve been in contact with a few users trying to make it work for them and I&#8217;ve found a number of peculiarities in the types of email invites sent by Exchange/Outlook. The biggest problem was that the time zone data for the event was improperly formatted. This caused all sorts of problems for Mac users.</p>

<p>Let&#8217;s start at the beginning. Sometimes integration of a Mac in the corporate environment is a bit difficult and takes a bit of ingenuity. This is especially true when dealing with Exchange. The current versions of iCal and iCal Server are CalDAV and iCalendar compliant. Only Outlook 2007 is said to be CalDAV and iCalendar compliant. Previous versions of Outlook are not compliant and don’t play well with other calendar applications. Here’s the actual <a href="http://www.kanzaki.com/docs/ical/tzid.html">time zone (TZID)</a> spec and <a href="http://www.kanzaki.com/docs/ical/tzid-p.html">the spec for how it should be formatted</a>. You can see by looking at it that the TZID that Outlook produces is non-compliant.</p>

<p>A quick Google search shows an <a href="http://www.roughlydrafted.com/2007/07/21/using-iphone-ical-caldav-calendar-servers-and-mac-os-x-leopard-2/">article</a> or <a href="http://hardware.itbusinessnet.com/articles/viewarticle.jsp?id=46651-1&amp;afterinter=true">two</a> that explain this very well.</p>

<p>I&#8217;ve found that there are at least 3 different types of invites that can be sent by Exchange/Outlook.</p>

<ol>
<li><code>METHOD:REQUEST</code> - This is the usual email requesting that you attend a meeting.</li>
<li><code>METHOD:PUBLISH</code> - This is essentially a publication notice for an event. It doesn&#8217;t ask you to reply.</li>
<li><code>METHOD:CANCEL</code> - This is a cancellation notice for an event.</li>
</ol>

<p>Additionally, I&#8217;ve found that the emails that contain these invites are formated in at least 3 different ways. Sometimes the calendar event is within the body of the message and is encoded with <code>Content-Transfer-Encoding</code> in either <code>8bit</code> or <code>quoted-printable</code>. Always the <code>.ics</code> file is attached.</p>

<p>My script does the following:</p>

<ol>
<li>It parses the message to either extract the calendar data from the body of the message or from the <code>.ics</code> attachment.</li>
<li>It then figures out if the invite is of type <code>METHOD:REQUEST</code>, <code>METHOD:PUBLISH</code> or <code>METHOD:CANCEL</code>.</li>
<li>If the invite is one of the first 2 types. The time zone is fixed and the event is imported into iCal. You might have to select into which calendar the event will be imported.</li>
<li>If the invite is of type <code>METHOD:CANCEL</code> then the script will locate the corresponding event and set it&#8217;s status to cancelled.

<ul>
<li>You will have to manually delete the event. It will appear in iCal to have a white strike-through font style.</li>
<li>Repeating events all seem to have the same UID (Unique IDentifier). I don&#8217;t know why. Every repeating event will be thusly marked as cancelled. You will then manually delete the specific event and manually run the script again while the cancellation message is selected. This will reset the remaining repeating events back to confirmed. Yes, I know this is a bit of a kludge but I don&#8217;t have a better method.</li>
</ul></li>
</ol>

<p>My script, now re-named <code>iCal-Invite-Fix.scpt</code>, will need to be customized for each Exchange server from which you receive invites. There are 2 properties at the beginning of the script they are <code>ical_tzid</code> and <code>myCalendar</code>.</p>

<ul>
<li><code>ical_tzid</code> is the time zone of the Exchange server in proper format.

<ul>
<li>This means no spaces. Spaces are replaced with the underscore &#8216;_&#8217;.</li>
<li>For instance, I&#8217;m in Southern California and the correct time zone should be written as <code>US/Pacific</code> or <code>America/Los_Angeles</code>. You can find this information by selecting the time zone drop down menu in the upper right corner of your iCal window and select <code>Other...</code>. If you look in iCal&#8217;s upper right corner for the time zone menu bar the last example will appear as <code>America/Los Angeles</code>. In the script you will need to replace this as indicated.</li>
</ul></li>
<li><code>myCalendar</code> is the name of the calendar that normally receives the events. It is needed for the cancellation to function.</li>
</ul>

<p><img src="http://thefragens.com/blog/wp-content/uploads/2008/08/ical-fix-properties.jpg" alt="ical-fix-properties.jpg" border="0" width="624" height="126" /></p>

<p>Save the script and either set it up to run from a mail rule or as I do call it from the System AppleScript menu. You will need to save the script in ~/Library/Scripts/Applications/Mail/ folder. Create this folder if it doesn’t exist.</p>

<p>To set the script up to run automatically you will need to create a new Mail rule as follows.</p>

<ol>
<li>Mail -> Preferences -> Rules -> Add Rule</li>
<li>Description &#8220;iCal Invite Fix&#8221;</li>
<li>If &#8220;any&#8221; of the following conditions are met:

<ul>
<li>&#8220;Any Attachment Name&#8221; &#8220;ends with&#8221; &#8220;.ics&#8221;</li>
</ul></li>
<li>Perform the following actions:

<ul>
<li>Run AppleScript &#8220;~/Library/Scripts/Applications/Mail/iCal-Invite-Fix.scpt&#8221;</li>
</ul></li>
<li>Click &#8220;OK&#8221; and then &#8220;Apply&#8221;</li>
</ol>

<p><img src="http://thefragens.com/blog/wp-content/uploads/2008/08/ical-fix-rule.jpg" alt="ical-fix-rule.jpg" border="0" width="556" height="218" /></p>

<p>You can also run the script manually from the system-wide script menu. To install this menu. Open up the <code>/Applications/AppleScript/AppleScript Utility.app</code> and check the <code>Show Script menu in menu bar</code> box. If you put the script in the folder location indicated above it will now be visible when Mail.app is the current application.</p>

<p><a href="http://thefragens.com/pub/iCal-Invite-Fix.scpt">Download the iCal-Invite-Fix script</a>.</p>

<p>Please let me know if there are any problems or you need help setting this up. The script was not entirely my creation and <a href="http://www.macosxhints.com/article.php?story=20060821073102694">credit also goes to others</a>. I’m quite certain any errors are likely mine. <img src='http://thefragens.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>

<p><strong>Updated</strong>: Now produces CalDAV-compliant TZIDs, no quotes.</p>
]]></content:encoded>
			<wfw:commentRss>http://thefragens.com/blog/2008/08/ical-exchange-time-zone-fix-chapter-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>iCal - Exchange Time Zone Fix - part 2</title>
		<link>http://thefragens.com/blog/2008/08/ical-exchange-time-zone-fix-part-2/</link>
		<comments>http://thefragens.com/blog/2008/08/ical-exchange-time-zone-fix-part-2/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 00:10:31 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
		
		<category><![CDATA[AppleScript]]></category>

		<category><![CDATA[code]]></category>

		<category><![CDATA[mac-osx]]></category>

		<guid isPermaLink="false">http://thefragens.com/blog/?p=514</guid>
		<description><![CDATA[I&#8217;ve come across a problem with the original MailExchange2iCal-TZ-fix script. It seems if the .ics invite was only listed as an attachment or in base64 encoding then the script would fail. I&#8217;ve subsequently revised the script to handle this and to more gracefully ask into which calendar you want the event imported.

I&#8217;ve also fixed the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve come across a problem with the <a href="http://thefragens.com/blog/2008/04/ical-exchange-time-zone-fix/">original MailExchange2iCal-TZ-fix script</a>. It seems if the .ics invite was only listed as an attachment or in base64 encoding then the script would fail. I&#8217;ve subsequently revised the script to handle this and to more gracefully ask into which calendar you want the event imported.</p>

<p>I&#8217;ve also fixed the script so that it runs successfully from a rule.</p>

<p><strong>Note</strong>: The <code>ical_TZID</code> property cannot have any spaces. Replace all spaces with underscores &#8220;<code>_</code>&#8221;. In iCal <code>America/Los_Angeles</code> will look like <code>America/Los Angeles</code> in the iCal dropdown menu.</p>

<p>Let me know if there are any problems.</p>

<p>As always you can <a href="http://thefragens.com/pub/MailExchange2iCal-TZ-fix.scpt">download the MailExchange2iCal-TZ-fix script here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://thefragens.com/blog/2008/08/ical-exchange-time-zone-fix-part-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Bill of NON-Rights</title>
		<link>http://thefragens.com/blog/2008/07/bill-of-non-rights/</link>
		<comments>http://thefragens.com/blog/2008/07/bill-of-non-rights/#comments</comments>
		<pubDate>Thu, 31 Jul 2008 17:09:06 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
		
		<category><![CDATA[life-unscripted]]></category>

		<guid isPermaLink="false">http://thefragens.com/blog/?p=508</guid>
		<description><![CDATA[I received this in an email from a friend. It is reproduced here without permission.

The following was written by Lewis Napper, a self described amateur philosopher from Mississippi . He ran for a senate seat in 2000.

&#8220;We the sensible people of the United States, in an attempt to help everyone get along, restore some semblance [...]]]></description>
			<content:encoded><![CDATA[<p>I received this in an email from a friend. It is reproduced here without permission.</p>

<p>The following was written by Lewis Napper, a self described amateur philosopher from Mississippi . He ran for a senate seat in 2000.</p>

<p>&#8220;We the sensible people of the United States, in an attempt to help everyone get along, restore some semblance of justice, avoid more riots, keep our nation safe, promote positive behavior, and secure the blessings of debt-free liberty to ourselves and our great-great-great-grandchildren, hereby try one more time to ordain and establish some common sense guidelines for the terminally whiny, guilt ridden, delusional, and other liberal bed-wetters. We hold these truths to be self evident: that a whole lot of people are confused by the Bill of Rights and are so dim they require a Bill of NON-Rights.&#8221;</p>

<p><strong>ARTICLE I</strong>: You do not have the right to a new car, big screen TV, or any other form of wealth. More power to you if you can legally acquire them, but no one is guaranteeing anything.</p>

<p><strong>ARTICLE II</strong>: You do not have the right to never be offended. This country is based on freedom, and that means freedom for everyone &#8212; not just you! You may leave the room, turn the channel, express a different opinion, etc.; but the world is full of idiots, and probably always will be. </p>

<p><strong>ARTICLE III</strong>: You do not have the right to be free from harm. If you stick a screwdriver in your eye, learn to be more careful; do not expect the tool manufacturer to make you and all your relatives independently wealthy.</p>

<p><strong>ARTICLE IV</strong>: You do not have the right to free food and housing. Americans are the most charitable people to be found, and will gladly help anyone in need, but we are quickly growing weary of subsidizing generation after generation of professional couch potatoes who achieve nothing more than the creation of another generation of professional couch potatoes  . (This one is my pet peeve&#8230;get an education and go to work&#8230;.don&#8217;t expect everyone else to take care of you!) </p>

<p><strong>ARTICLE V</strong>: You do not have the right to free health care. That would be nice, but from the looks of public housing, we&#8217;re just not interested in public health care.</p>

<p><strong>ARTICLE VI</strong>: You do not have the right to physically harm other people. If you kidnap, rape, intentionally maim, or kill someone, don&#8217;t be surprised if the rest of us want to see you fry in the electric chair. </p>

<p><strong>ARTICLE VII</strong>: You do not have the right to the possessions of others. If you rob, cheat, or coerce away the goods or services of other citizens, don&#8217;t be surprised if the rest of us get together and lock you away in a place where you still won&#8217;t have the right to a big screen color TV or a life of leisure.</p>

<p><strong>ARTICLE VIII</strong>: You do not have the right to a job.. All of us sure want you to have a job, and will gladly help you along in hard times, but we expect you to take advantage of the opportunities of education and vocational training laid before you to make yourself useful. (AMEN!) </p>

<p><strong>ARTICLE IX</strong>: You do not have the right to happiness. Being an American means that you have the right to PURSUE happiness, which by the way, is a lot easier if you are unencumbered by an over abundance of idiotic laws created by those of you who were confused by the Bill of Rights. </p>

<p><strong>ARTICLE X</strong>: This is an English speaking country. We don&#8217;t care where you are from, English is our language. Learn it or go back to wherever you came from! (Lastly&#8230;.)</p>

<p><strong>ARTICLE XI</strong>: You do not have the right to change our country&#8217;s history or heritage. This country was founded on the belief in one true God. And yet, you are given the freedom to believe in any religion, any faith, or no faith at all; with no fear of persecution. The phrase IN GOD WE TRUST is part of our heritage and history, and if you are uncomfortable with it, TOUGH!!!! GET OVER IT  !!!</p>
]]></content:encoded>
			<wfw:commentRss>http://thefragens.com/blog/2008/07/bill-of-non-rights/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WordPress and the iPhone</title>
		<link>http://thefragens.com/blog/2008/07/wordpress-and-the-iphone/</link>
		<comments>http://thefragens.com/blog/2008/07/wordpress-and-the-iphone/#comments</comments>
		<pubDate>Sat, 26 Jul 2008 03:14:37 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
		
		<category><![CDATA[blogging]]></category>

		<category><![CDATA[computer]]></category>

		<guid isPermaLink="false">http://thefragens.com/blog/2008/07/wordpress-and-the-iphone/</guid>
		<description><![CDATA[So I&#8217;m trying out the latest WordPress for iPhone app and it&#8217;s pretty cool. What I&#8217;ve noticed though, because I use the Markdown plugin is that the preview shows the marked up content and not the rendered content. It would be great if somehow this could be fixed. 
]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;m trying out the latest WordPress for iPhone app and it&#8217;s pretty cool. What I&#8217;ve noticed though, because I use the <a href="http://daringfireball.net/projects/markdown/">Markdown</a> plugin is that the preview shows the marked up content and not the rendered content. It would be great if somehow this could be fixed. </p>
]]></content:encoded>
			<wfw:commentRss>http://thefragens.com/blog/2008/07/wordpress-and-the-iphone/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Saving Medicare?</title>
		<link>http://thefragens.com/blog/2008/07/saving-medicare/</link>
		<comments>http://thefragens.com/blog/2008/07/saving-medicare/#comments</comments>
		<pubDate>Mon, 07 Jul 2008 22:02:18 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
		
		<category><![CDATA[medicine]]></category>

		<guid isPermaLink="false">http://thefragens.com/blog/?p=501</guid>
		<description><![CDATA[I&#8217;ve been getting to the point lately that the system needs to undergo some catastrophic collapse before it will get better.

As the Happy Hospitalist says: 


  Here&#8217;s my position.  It&#8217;s time to let the cuts stand.  Congress should not reverse the 10.6% cuts that began in July 1st 2008.  And here&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been getting to the point lately that the system needs to undergo some catastrophic collapse before it will get better.</p>

<p>As the <a href="http://thehappyhospitalist.blogspot.com/2008/07/you-have-no-one-to-blame-but-yourself.html">Happy Hospitalist</a> says: </p>

<blockquote>
  <p>Here&#8217;s my position.  It&#8217;s time to let the cuts stand.  Congress should not reverse the 10.6% cuts that began in July 1st 2008.  And here&#8217;s why:  The financial mess we are in now is entirely a result of third party interference of the doctor-patient relationship.</p>
</blockquote>

<p>He&#8217;s absolutely correct in the assessment that the doctors are to blame. If only we didn&#8217;t prostitute ourselves by signing some of these outrageous contracts it might be better.</p>

<p>I say let the cuts go through. Then soon, both doctors and hospitals will soon realize that they cannot afford to take care of patients for the <em>contracted</em> rates and might actually grow the brass ones to cancel all of their contracts, <strong>including Medicare</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://thefragens.com/blog/2008/07/saving-medicare/feed/</wfw:commentRss>
		</item>
		<item>
		<title>MobileMe &#038; OS X Server</title>
		<link>http://thefragens.com/blog/2008/06/500/</link>
		<comments>http://thefragens.com/blog/2008/06/500/#comments</comments>
		<pubDate>Tue, 10 Jun 2008 02:09:03 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
		
		<category><![CDATA[osx-server]]></category>

		<guid isPermaLink="false">http://thefragens.com/blog/?p=500</guid>
		<description><![CDATA[I&#8217;m just coming down out of the Jobs RDF. I&#8217;m wondering, will there be some OS X Server equivalent to the new .Mac service - MobileMe?

I&#8217;d love to be able to deploy push email and push calendar to my users. 
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m just coming down out of the Jobs RDF. I&#8217;m wondering, will there be some OS X Server equivalent to the new .Mac service - MobileMe?</p>

<p>I&#8217;d love to be able to deploy push email and push calendar to my users. </p>
]]></content:encoded>
			<wfw:commentRss>http://thefragens.com/blog/2008/06/500/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Text and Quote Wrapping</title>
		<link>http://thefragens.com/blog/2008/06/text-and-quote-wrapping/</link>
		<comments>http://thefragens.com/blog/2008/06/text-and-quote-wrapping/#comments</comments>
		<pubDate>Fri, 06 Jun 2008 22:57:40 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
		
		<category><![CDATA[code]]></category>

		<category><![CDATA[mac-osx]]></category>

		<guid isPermaLink="false">http://thefragens.com/blog/?p=499</guid>
		<description><![CDATA[If any of you find yourself using webmail you&#8217;ll know what I&#8217;m talking about. If you&#8217;re at all like me, you like to be able to follow the replies in an email thread. Using webmail the quoting and wrapping get screwed up quite easily.

I was looking for a simple way to rewrap, unwrap, increase the [...]]]></description>
			<content:encoded><![CDATA[<p>If any of you find yourself using webmail you&#8217;ll know what I&#8217;m talking about. If you&#8217;re at all like me, you like to be able to follow the replies in an email thread. Using webmail the quoting and wrapping get screwed up quite easily.</p>

<p>I was looking for a simple way to rewrap, unwrap, increase the quote level, and decrease the quote level of any selection of text. I found that there were several good shareware programs that did this, and many other things. But I was really looking for a simple one-trick pony of sorts. So in the usual fashion I decided to roll my own. What I did was create a single shell script that when passed a parameter will do what you want to whatever is in the clipboard. It then replaces the clipboard with the changed text.</p>

<p>I call the package <a href="http://thefragens.com/pub/quote_changes.zip"><em>quote&#95;changes</em></a>. Go get it.</p>

<p>After you unzip it, put it in <code>~/Library/Scripts/</code>. Activate your system-wide script menu from the <code>AppleScript Utility.app</code>.</p>

<p>The scripts are all meant to be in the same folder. The scripts that does all the work is <code>change_quote.sh</code>. The usage of the script is as follows:</p>

<p><code>$ change_quote.sh increase</code> &#8212; will rewrap the text on the clipboard and increase the level of quoting (>). The additional scripts in the package are simply calls with the appropriate parameters. The full usage is</p>

<pre><code>$ change_quote.sh (increase|decrease|rewrap|unwrap)
</code></pre>

<p>If anyone has any problems let me know. I hope others find this useful. Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://thefragens.com/blog/2008/06/text-and-quote-wrapping/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
