<?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: Toggle hidden file viewing in Mac OS X</title>
	<atom:link href="http://jonknapp.com/2008/04/toggle-hidden-file-viewing-in-mac-os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonknapp.com/2008/04/toggle-hidden-file-viewing-in-mac-os-x/</link>
	<description>byte artist</description>
	<lastBuildDate>Thu, 26 May 2011 13:55:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: cheung</title>
		<link>http://jonknapp.com/2008/04/toggle-hidden-file-viewing-in-mac-os-x/#comment-4</link>
		<dc:creator>cheung</dc:creator>
		<pubDate>Thu, 26 May 2011 13:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://cupof.coffeeandcode.com/?p=10#comment-4</guid>
		<description>Not sure why but the previous post chose to ignore a few of the line breaks in my code. I&#039;m not sure if it would mess it up or not, but here it is again (hopefully it works):







p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px &#039;Andale Mono&#039;}



VALUE=$(defaults read com.apple.finder AppleShowAllFiles).
if [ &quot;$VALUE&quot; = FALSE ]; then.
defaults write com.apple.finder AppleShowAllFiles TRUE.
else
defaults write com.apple.finder AppleShowAllFiles FALSE.
fi
osascript -e &#039;tell application &quot;Finder&quot; to quit&#039;;.
osascript -e &#039;tell application &quot;Finder&quot; to activate&#039;;.</description>
		<content:encoded><![CDATA[<p>Not sure why but the previous post chose to ignore a few of the line breaks in my code. I&#8217;m not sure if it would mess it up or not, but here it is again (hopefully it works):</p>
<p>p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px &#8216;Andale Mono&#8217;}</p>
<p>VALUE=$(defaults read com.apple.finder AppleShowAllFiles).<br />
if [ "$VALUE" = FALSE ]; then.<br />
defaults write com.apple.finder AppleShowAllFiles TRUE.<br />
else<br />
defaults write com.apple.finder AppleShowAllFiles FALSE.<br />
fi<br />
osascript -e &#8216;tell application &#8220;Finder&#8221; to quit&#8217;;.<br />
osascript -e &#8216;tell application &#8220;Finder&#8221; to activate&#8217;;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cheung</title>
		<link>http://jonknapp.com/2008/04/toggle-hidden-file-viewing-in-mac-os-x/#comment-3</link>
		<dc:creator>cheung</dc:creator>
		<pubDate>Thu, 26 May 2011 13:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://cupof.coffeeandcode.com/?p=10#comment-3</guid>
		<description>Here&#039;s an update incase anyone stumbles onto this page. I was messing around with making an Automator service so you could just right click in a Finder window and show or hide the hidden files/folders. Here&#039;s a link to the website where most of the code came from:

http://gigaom.com/apple/quick-tip-showhide-hidden-files/

But with their&#039;s you needed two services and I wanted more of a toggle one, so I wrote up my own script. You can follow their directions, except in Snow Leopard you just &quot;Save as&quot; rather than &quot;Save as plugin&quot;, and paste in my code below rather than their&#039;s:

VALUE=$(defaults read com.apple.finder AppleShowAllFiles).
if [ &quot;$VALUE&quot; = FALSE ]; then.
defaults write com.apple.finder AppleShowAllFiles TRUE.
elsedefaults write com.apple.finder AppleShowAllFiles FALSE.fiosascript -e &#039;tell application &quot;Finder&quot; to quit&#039;;.osascript -e &#039;tell application &quot;Finder&quot; to activate&#039;;.

Also, their code used the bash &quot;killall&quot; command which made you lose your open Finder window, but mine is a bit more subtle and just closes and reopens Finder allowing you to keep your place in Finder.

The only weird thing I&#039;ve noticed is that my Finder icon in the dock seems to get translucent like it&#039;s hidden. I&#039;m not sure why...
</description>
		<content:encoded><![CDATA[<p>Here&#8217;s an update incase anyone stumbles onto this page. I was messing around with making an Automator service so you could just right click in a Finder window and show or hide the hidden files/folders. Here&#8217;s a link to the website where most of the code came from:</p>
<p><a href="http://gigaom.com/apple/quick-tip-showhide-hidden-files/" rel="nofollow">http://gigaom.com/apple/quick-tip-showhide-hidden-files/</a></p>
<p>But with their&#8217;s you needed two services and I wanted more of a toggle one, so I wrote up my own script. You can follow their directions, except in Snow Leopard you just &#8220;Save as&#8221; rather than &#8220;Save as plugin&#8221;, and paste in my code below rather than their&#8217;s:</p>
<p>VALUE=$(defaults read com.apple.finder AppleShowAllFiles).<br />
if [ "$VALUE" = FALSE ]; then.<br />
defaults write com.apple.finder AppleShowAllFiles TRUE.<br />
elsedefaults write com.apple.finder AppleShowAllFiles FALSE.fiosascript -e &#8216;tell application &#8220;Finder&#8221; to quit&#8217;;.osascript -e &#8216;tell application &#8220;Finder&#8221; to activate&#8217;;.</p>
<p>Also, their code used the bash &#8220;killall&#8221; command which made you lose your open Finder window, but mine is a bit more subtle and just closes and reopens Finder allowing you to keep your place in Finder.</p>
<p>The only weird thing I&#8217;ve noticed is that my Finder icon in the dock seems to get translucent like it&#8217;s hidden. I&#8217;m not sure why&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cheung</title>
		<link>http://jonknapp.com/2008/04/toggle-hidden-file-viewing-in-mac-os-x/#comment-2</link>
		<dc:creator>cheung</dc:creator>
		<pubDate>Thu, 30 Oct 2008 21:04:07 +0000</pubDate>
		<guid isPermaLink="false">http://cupof.coffeeandcode.com/?p=10#comment-2</guid>
		<description>hey man, nice bit of code. I can&#039;t say I&#039;ve really got a need to see my hidden files, but cool any way.

I was actually just thinking about you, dood. I was just playing with a bit of code that switched my sleep mode on leopard to the &quot;hibernation&quot; mode that XP uses. I was thinking about what a pain in the ass it was to have to use terminal everytime I wanted to switch between the two. My initial thought was that this was the perfect excuse I needed to play with writing a short AppleScript prog but I wasn&#039;t sure even where to start.

Oh yea, when are you going to get around to making your site iPhone compatible? . )</description>
		<content:encoded><![CDATA[<p>hey man, nice bit of code. I can&#8217;t say I&#8217;ve really got a need to see my hidden files, but cool any way.</p>
<p>I was actually just thinking about you, dood. I was just playing with a bit of code that switched my sleep mode on leopard to the &#8220;hibernation&#8221; mode that XP uses. I was thinking about what a pain in the ass it was to have to use terminal everytime I wanted to switch between the two. My initial thought was that this was the perfect excuse I needed to play with writing a short AppleScript prog but I wasn&#8217;t sure even where to start.</p>
<p>Oh yea, when are you going to get around to making your site iPhone compatible? . )</p>
]]></content:encoded>
	</item>
</channel>
</rss>

