• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Applescript, Calendar and Filemaker Pro
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript, Calendar and Filemaker Pro


  • Subject: Re: Applescript, Calendar and Filemaker Pro
  • From: Christopher Stone <email@hidden>
  • Date: Mon, 22 Jul 2013 18:35:40 -0500

On Jul 22, 2013, at 06:00, Robert Cuilla <email@hidden> wrote:
I am working on a Filemaker Pro 12 solution and need to access my Calendar.  I need to specify a date and a particular calendar and return the events there in.
______________________________________________________________________

Hey Bob,

I don't script the calendar much, so there are surely some tricks I'm unaware of - but this should give you a push in the right direction.

set startDate to "6-16-2013"
set startDate to (date startDate) - (days / 86400) # So Applescript doesn't convert my textual date.
set endDate to startDate + (1 * days)

tell application "Calendar"
set calNames to name of calendars


tell calendar "Important Dates"
properties of events whose start date > startDate and start date < endDate
end tell


end tell

Usually midnight of the start date + 1 day works, but in my test case the event started at midnight - so I had to subtract a second.

If you need more I'd recommend searching Google for:

Applescript (calendar OR ical) date range site:http://lists.apple.com/archives/applescript-users

Applescript (calendar OR ical) date range

--
Best Regards,
Chris

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Applescript, Calendar and Filemaker Pro (From: Robert Cuilla <email@hidden>)

  • Prev by Date: Re(2): Applescript, Calendar and Filemaker Pro
  • Next by Date: Re: Applescript, Calendar and Filemaker Pro
  • Previous by thread: Re: Applescript, Calendar and Filemaker Pro
  • Next by thread: Re: Applescript, Calendar and Filemaker Pro
  • Index(es):
    • Date
    • Thread