title: How can I run my applescript at intervals
body: <p>I've made a script that each day it gets the local time, and then makes an alias of a folder specified by me through code on the desktop. At the beginning, it asks for what day it is (via a list). It doesn't work because even if I use launchd to run it every 5 minutes, it will ask me for the list. Is there a way to get the variable stored every day, and then just make it do the rest of the work throughout the day?</p>
  
  <p>I've actually combined AppleScript and Automator to make it function, so I need to make the Automator run and not the AppleScript. </p>
  
  <p>My PLIST Code</p>
  
  <pre><code>  &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
  &lt;plist version="1.0"&gt;
  &lt;dict&gt;
          &lt;key&gt;RunAtLoad&lt;/key&gt;  
          &lt;true/&gt;
          &lt;key&gt;KeepAlive&lt;/key&gt;
          &lt;true/&gt;
          &lt;key&gt;Label&lt;/key&gt;
          &lt;string&gt;wallpaper.restart&lt;/string&gt;
          &lt;key&gt;ProgramArguments&lt;/key&gt;
          &lt;array&gt;
                  &lt;string&gt;PATH:TO:FILE&lt;/string&gt; 
          &lt;/array&gt;
          &lt;key&gt;StartCalendarInterval&lt;/key&gt;
          &lt;dict&gt;
              &lt;key&gt;Hour&lt;/key&gt;
              &lt;integer&gt;1&lt;/integer&gt;
  
         &lt;/dict&gt;
  &lt;/dict&gt;
  &lt;/plist&gt;
  </code></pre>
  
  <p>I would appreciate any pointers for me to get started, or anything that could help. </p>
  
  <p>Thanks</p>