<?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: Safari&#8217;s Table-Copying Behavior</title>
	<atom:link href="http://nslog.com/2005/04/09/safaris_tablecopying_behavior/feed" rel="self" type="application/rss+xml" />
	<link>http://nslog.com/2005/04/09/safaris_tablecopying_behavior</link>
	<description>The Weblog of Erik J. Barzeski</description>
	<lastBuildDate>Tue, 07 Sep 2010 18:38:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: SRV007</title>
		<link>http://nslog.com/2005/04/09/safaris_tablecopying_behavior#comment-46326</link>
		<dc:creator>SRV007</dc:creator>
		<pubDate>Sat, 01 Mar 2008 15:28:44 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2005/04/09/safaris_table-copying_behavior/#comment-46326</guid>
		<description>You&#039;re a champion Lowell - we run a  golf site too and I have had to keep FF open all the time just to do scores as Safari is so much quicker I use that the rest of the time.

The script works fantastically!

Unfortunately I still need FF when doing CSS - WebDev can&#039;t be beaten by WebKit&#039;s inspector yet.....</description>
		<content:encoded><![CDATA[<p>You're a champion Lowell - we run a  golf site too and I have had to keep FF open all the time just to do scores as Safari is so much quicker I use that the rest of the time.</p>
<p>The script works fantastically!</p>
<p>Unfortunately I still need FF when doing CSS - WebDev can't be beaten by WebKit's inspector yet.....</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lowell</title>
		<link>http://nslog.com/2005/04/09/safaris_tablecopying_behavior#comment-45471</link>
		<dc:creator>Lowell</dc:creator>
		<pubDate>Wed, 23 Jan 2008 10:45:49 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2005/04/09/safaris_table-copying_behavior/#comment-45471</guid>
		<description>Last word on the subject (I promise)... the applescript quoted before can be shortened to:

set the clipboard to (the clipboard as text)

what it&#039;s doing is simply stripping out the Rich Text representation that Safari is putting the clipboard (which screws up the tabular format), leaving only the plain text representation that Numbers &amp; other apps are more likely to handle correctly.</description>
		<content:encoded><![CDATA[<p>Last word on the subject (I promise)... the applescript quoted before can be shortened to:</p>
<p>set the clipboard to (the clipboard as text)</p>
<p>what it's doing is simply stripping out the Rich Text representation that Safari is putting the clipboard (which screws up the tabular format), leaving only the plain text representation that Numbers &amp; other apps are more likely to handle correctly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lowell</title>
		<link>http://nslog.com/2005/04/09/safaris_tablecopying_behavior#comment-45470</link>
		<dc:creator>Lowell</dc:creator>
		<pubDate>Wed, 23 Jan 2008 10:15:36 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2005/04/09/safaris_table-copying_behavior/#comment-45470</guid>
		<description>Erik,
A few minutes ago I posted a comment on this 3-year-old blog entry, and now I realize I may have misspoken in my comment. But it&#039;s in the moderation queue, so I can&#039;t see it to know for sure. The script I attempted to post still works, but my description of the script was faulty.  I claimed ASCII 13 was a Unix-style line break, which of course it&#039;s not--it&#039;s a Mac-style line break.  So the script apparently switches Mac-style line breaks out for Mac-style linebreaks, which shouldn&#039;t really affect anything--but it somehow kicks things into working.  (You can maybe understand how I became confused.)</description>
		<content:encoded><![CDATA[<p>Erik,<br />
A few minutes ago I posted a comment on this 3-year-old blog entry, and now I realize I may have misspoken in my comment. But it's in the moderation queue, so I can't see it to know for sure. The script I attempted to post still works, but my description of the script was faulty.  I claimed ASCII 13 was a Unix-style line break, which of course it's not--it's a Mac-style line break.  So the script apparently switches Mac-style line breaks out for Mac-style linebreaks, which shouldn't really affect anything--but it somehow kicks things into working.  (You can maybe understand how I became confused.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lowell</title>
		<link>http://nslog.com/2005/04/09/safaris_tablecopying_behavior#comment-45469</link>
		<dc:creator>Lowell</dc:creator>
		<pubDate>Wed, 23 Jan 2008 09:41:40 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2005/04/09/safaris_table-copying_behavior/#comment-45469</guid>
		<description>Sorry to comment on a 3-year-old post, but I came across this as I was googling about the same issue (that STILL exists in 2008!), and then I wrote an AppleScript to fix it.  I know, I should have just used Firefox, but I like Safari&#039;s speed.

At any rate, the following script (pasted into Script Editor, and saved as an Application) will clean up whatever table Safari put on the clipboard, and make it work better with Mac apps that accept tab-delimited text (such as Numbers, Excel, etc.):

&lt;code&gt;set mydata to get the clipboard as text
set AppleScript&#039;s text item delimiters to {(ASCII character 13) as text}
set mylines to text items of mydata
set AppleScript&#039;s text item delimiters to {return}
set the clipboard to mylines as text
set AppleScript&#039;s text item delimiters to {&quot;&quot;}&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Sorry to comment on a 3-year-old post, but I came across this as I was googling about the same issue (that STILL exists in 2008!), and then I wrote an AppleScript to fix it.  I know, I should have just used Firefox, but I like Safari's speed.</p>
<p>At any rate, the following script (pasted into Script Editor, and saved as an Application) will clean up whatever table Safari put on the clipboard, and make it work better with Mac apps that accept tab-delimited text (such as Numbers, Excel, etc.):</p>
<p><code>set mydata to get the clipboard as text<br />
set AppleScript's text item delimiters to {(ASCII character 13) as text}<br />
set mylines to text items of mydata<br />
set AppleScript's text item delimiters to {return}<br />
set the clipboard to mylines as text<br />
set AppleScript's text item delimiters to {""}</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://nslog.com/2005/04/09/safaris_tablecopying_behavior#comment-14799</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Fri, 14 Apr 2006 02:30:27 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2005/04/09/safaris_table-copying_behavior/#comment-14799</guid>
		<description>We also run a golf website and copy scores weekly from every tour website. We have scripts in BBEdit that make them all in the same format eg Position +/- par Name etc etc.



Camino, Mozilla and Firefox all do as expected and copy from table with tabs and line breaks - Safari does not and is very annoying hence we use Camino as our day to day browser. Faster than them all and copies tables correctly.



End result is do not use Safari or switch to Camino etc when you ahve to copy a table. Will save you a shedload of time.</description>
		<content:encoded><![CDATA[<p>We also run a golf website and copy scores weekly from every tour website. We have scripts in BBEdit that make them all in the same format eg Position +/- par Name etc etc.</p>
<p>Camino, Mozilla and Firefox all do as expected and copy from table with tabs and line breaks - Safari does not and is very annoying hence we use Camino as our day to day browser. Faster than them all and copies tables correctly.</p>
<p>End result is do not use Safari or switch to Camino etc when you ahve to copy a table. Will save you a shedload of time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johnny Hands</title>
		<link>http://nslog.com/2005/04/09/safaris_tablecopying_behavior#comment-14798</link>
		<dc:creator>Johnny Hands</dc:creator>
		<pubDate>Thu, 23 Feb 2006 00:45:40 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2005/04/09/safaris_table-copying_behavior/#comment-14798</guid>
		<description>This pisses me off too.  I just sent a message to fix it to Apple via the Safari-&gt;Report Bug to Apple... menu item - though I&#039;m pretty sure they already know about it.  I will start using Firefox if they don&#039;t fix this soon.</description>
		<content:encoded><![CDATA[<p>This pisses me off too.  I just sent a message to fix it to Apple via the Safari-&gt;Report Bug to Apple... menu item - though I'm pretty sure they already know about it.  I will start using Firefox if they don't fix this soon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BBEdit Table-Pasting Broken Somehow??? &#124; NSLog();</title>
		<link>http://nslog.com/2005/04/09/safaris_tablecopying_behavior#comment-14800</link>
		<dc:creator>BBEdit Table-Pasting Broken Somehow??? &#124; NSLog();</dc:creator>
		<pubDate>Mon, 22 Aug 2005 14:36:56 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2005/04/09/safaris_table-copying_behavior/#comment-14800</guid>
		<description>Did Safari 2.0 (412.2.2 - the one you get with Security Update 2005-007) break table-copying behavior for anyone else, or just me? I used this page as a test. I pasted into BBEdit (8.2.3). Safari had been working properly for...
</description>
		<content:encoded><![CDATA[<p>Did Safari 2.0 (412.2.2 - the one you get with Security Update 2005-007) break table-copying behavior for anyone else, or just me? I used this page as a test. I pasted into BBEdit (8.2.3). Safari had been working properly for...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adolph Trudeau</title>
		<link>http://nslog.com/2005/04/09/safaris_tablecopying_behavior#comment-14797</link>
		<dc:creator>Adolph Trudeau</dc:creator>
		<pubDate>Fri, 22 Apr 2005 17:20:48 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2005/04/09/safaris_table-copying_behavior/#comment-14797</guid>
		<description>I continued thinking about this topic and wrote a cleaner shell script for the Safari table to tabs problem:



#!/bin/sh

pbpaste &#124; perl -p -e &#039;s/(\r&#124;\n)/\r\t/gi&#039; &#124; perl -p -e &#039;s/\r\t\r\t/\r/gi&#039; &#124; perl -p -e &#039;s/\r\t/\t/gi&#039; &#124; pbcopy



I&#039;m certain that someone better at Perl can rewrite this to be shorter. I wrote this one because I was copying Safari tables into a Windows XP device over RDC and pasting into BBEdit, executing the text factory, and copy/pasting into RDC, which was a pain. I have plugged the script into Quicksilver, so that the workflow is copy, QS command, then paste.</description>
		<content:encoded><![CDATA[<p>I continued thinking about this topic and wrote a cleaner shell script for the Safari table to tabs problem:</p>
<p>#!/bin/sh</p>
<p>pbpaste | perl -p -e 's/(\r|\n)/\r\t/gi' | perl -p -e 's/\r\t\r\t/\r/gi' | perl -p -e 's/\r\t/\t/gi' | pbcopy</p>
<p>I'm certain that someone better at Perl can rewrite this to be shorter. I wrote this one because I was copying Safari tables into a Windows XP device over RDC and pasting into BBEdit, executing the text factory, and copy/pasting into RDC, which was a pain. I have plugged the script into Quicksilver, so that the workflow is copy, QS command, then paste.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sxtxixtxcxh</title>
		<link>http://nslog.com/2005/04/09/safaris_tablecopying_behavior#comment-14796</link>
		<dc:creator>sxtxixtxcxh</dc:creator>
		<pubDate>Mon, 18 Apr 2005 05:32:28 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2005/04/09/safaris_table-copying_behavior/#comment-14796</guid>
		<description>you&#039;re right. 



maybe i had firefox data in the clipboard and when i tried copying in safari i was hitting the wrong key. (most likely cmd+v, but i was definitely in safari).



my bad.</description>
		<content:encoded><![CDATA[<p>you're right. </p>
<p>maybe i had firefox data in the clipboard and when i tried copying in safari i was hitting the wrong key. (most likely cmd+v, but i was definitely in safari).</p>
<p>my bad.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sxtxixtxcxh</title>
		<link>http://nslog.com/2005/04/09/safaris_tablecopying_behavior#comment-14795</link>
		<dc:creator>sxtxixtxcxh</dc:creator>
		<pubDate>Mon, 18 Apr 2005 02:12:24 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2005/04/09/safaris_table-copying_behavior/#comment-14795</guid>
		<description>it worked for me... copying and pasting the table from the top of this page to text edit and text wrangler...



i&#039;ll try again, when i get back home.</description>
		<content:encoded><![CDATA[<p>it worked for me... copying and pasting the table from the top of this page to text edit and text wrangler...</p>
<p>i'll try again, when i get back home.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
