title: AppleScript set directory path in Finder
body: <p>I'm trying to delete a file on my computer via AppleScript. When I apply the code below, it seems to delete the file from desktop. I'd like to delete the file in the "/Users/andrew/Documents". This is the code below which deletes the file from the desktop:  </p>
  
  <pre><code>tell application "Finder"
      if exists file "new.mp3" then
          delete file "new.mp3"
      end if
  end tell
  </code></pre>
  
  <p>This is what tried and it doesn't work:</p>
  
  <pre><code>tell application "Finder"
      if exists file "/Users/andrew/Documents/new.mp3" then
          delete file "/Users/andrew/Documents/new.mp3"
      end if
  end tell
  </code></pre>
  
  <p>If anyone could any advice it would be much appreciated!!</p>