title: Take a screen shot and save to desktop with current time as the name
body: <p>I am trying to make a script that will take a screen shot, save the image to the desktop, and name it the date. Similar to what would happen if I used cmd + shift + 3. The only issue is the name of the image is only "Screen" instead of the entire name I specified. Anyone know how to fix this?</p>
  
  <pre><code>on run
      set theDesktop to POSIX path of (path to desktop as string)
      set theCurrentDate to current date
      set shellCommand to "/usr/sbin/screencapture " &amp; theDesktop &amp; "Screen Shot" &amp; theCurrentDate &amp; ".png"
      do shell script shellCommand
  end run
  </code></pre>