title: Can I convert a command line script into a AppleScript?
body: <p>I have command in Terminal that I would like to put into an AppleScript file. Is this possible? </p>
  
  <p><strong>More info</strong>:<br>
  I'm using the following code to show hidden files. I type this on the command line in Terminal to make it work:  </p>
  
  <pre><code>defaults write com.apple.finder AppleShowAllFiles -bool true
  killAll Finder
  </code></pre>
  
  <p>I would like to convert this into an AppleScript file so I can double click on it and it will run sortof like a batch file in Windows. </p>
  
  <p><strong>UPDATE</strong>:<br>
  If there is a better option to use than a AppleScript file I would need to know how to run it from the command line in addition to double-clicking it. </p>