title: How do I get a _received_ iCal event to run a script?
body: <p>I'm trying to write an Applescript that will make an outgoing Skype call at times scheduled by <em>received</em> invites from other parties.</p>
  
  <p>I think I'm fine with the script to Skype's API to make the call, however I'm struggling with iCal with either method of</p>
  
  <p>A) getting the script to run in the background and getting the time of all new events, or</p>
  
  <p>B) getting the event alert to run a one-off script.</p>
  
  <p>The issue with option B) is that although you can set events from within iCal so that the alert runs a script, I need to trigger this from events that have been received.</p>
  
  <p>A typical example would be:</p>
  
  <ul>
  <li>All scripts and iCal running on the Host</li>
  <li>At 10am a User schedules an event (via google cal on portable device) for 3pm** and invites the the Host.</li>
  <li>At 3pm the script on the Host uses Skype API to make a call to the User.</li>
  </ul>
  
  <p>** this could just as equally be on a date in the future and the requirements still hold.</p>
  
  <p>Many thanks for any advice!</p>