title: Open new Finder window using AppleScript
body: <p>How can I open a new window of Finder in AppleScript?  I am using an if else statement to open a window. I tried an <code>Osascript</code> command but it gave me a syntax error.  The code is below:</p>
  
  <pre><code>if the button returned of the result is "Sleep" then
      tell app "Finder" to go to sleep
  if the button returned of the result is "Open Finder" then
      osascript -e 'tell application "Finder" to open new window'
  else
      display dialog current time
  end if
  </code></pre>