1 Reply Latest reply on Mar 17, 2017 5:49 AM by mikebeargie

    How can I script to add events on Mac calendar or reminder?

    jiang_aq

      I wanna set some reminders on calendar, so that I can visually see all my todo lists in calendar and meanwhile set alarms for any events one or two day in advance.

       

      How can I script it?

        • 1. Re: How can I script to add events on Mac calendar or reminder?
          mikebeargie

          If you're only dealing with apple's calendar app (and NOT with outlook or another mail client), then the Perform Applescript script step is a good start.

           

          Their official documentation is here:

          Calendar Scripting Guide: About Calendar Scripting

           

          Here is a sample applescript for adding a calendar event.

          1. set theStartDate to (current date) + (1 * days)
          2. set hours of theStartDate to 15
          3. set minutes of theStartDate to 0
          4. set seconds of theStartDate to 0
          5. set theEndDate to theStartDate + (1 * hours)
          6. tell application "Calendar"
          7.   tell calendar "Project Calendar"
          8.   make new event with properties {summary:"Important Meeting!", start date:theStartDate, end date:theEndDate}
          9.   end tell
          10. end tell

           

          You would take that, and then figure out how to work in your filemaker fields to the script so that when it is run by Perform Applescript, it sends your event from filemaker to the calendar.