title: How to make a script to show/hide hidden files in Mac OS X?
body: <p>I just got my MBP with Retina and i'm really new to the Mac OS X (using PC before). I noticed that the Mac doesn't have a GUI to show/hide hidden files like Windows. I've researched and saw this site <a href="http://osxdaily.com/2009/02/25/show-hidden-files-in-os-x/" rel="noreferrer">Show Hidden Files on your Mac</a>. And yes, it works.</p>
  
  <p><strong>To show hidden files:</strong>
  (Using Terminal)
  defaults write <code>com.apple.finder AppleShowAllFiles TRUE killall Finder</code></p>
  
  <p><strong>To hide hidden files:</strong>
  <code>defaults write com.apple.finder AppleShowAllFiles FALSE killall Finder</code></p>
  
  <p>What i wanted to do is to make an executable script that will perform the above commands when i double-click it so that i don't have to type commands in Terminal in order for me to show/hide hidden files. I saw Applescript but i'm not very familiar with it. I don't know the commands to perform what i want. But i've read some.</p>
  
  <p>Can someone please help me make an executable script that will show/hide hidden files in my Mac?</p>