Re: Applescript, Calendar and Filemaker Pro
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:
-- 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