title: applescript to close pdf window
body: <p>I have an applescript that looks like this:</p>
  
  <pre><code>repeat
     tell application "Adobe Reader"
       open "filepath/name.pdf"
      end tell
  
      delay (60)
  
     tell application "Adobe Reader"
       open "filepath/name1.pdf"
      end tell
  
      delay (60)
  
     tell application "Adobe Reader"
       open "filepath/name2.pdf"
      end tell
  
      delay (60)
  
  end repeat
  </code></pre>
  
  <p>I want to be able to close pdf windows after they have been opened.  The issue is that these pdfs reside on a share and users have the ability to update them.  The script will only display the updated pdf if it is stopped and restarted.  I do not want to have to do this manually.  How can I do this?</p>