Re: Applescript, Calendar and Filemaker Pro
Re: Applescript, Calendar and Filemaker Pro
- Subject: Re: Applescript, Calendar and Filemaker Pro
- From: Peter Baxter <email@hidden>
- Date: Tue, 23 Jul 2013 22:21:51 +1000
I'v had a fiddle with Filemaker Pro and applescript. I often write applescripts to run from within Filemaker, but you seem to want to call Filemaker database from Applescript, so I had a go at it.
The following script imports a Calendar into Filemaker. It gets all the available dates. You may be able to use this to achieve what you want by replacing the repeat with a choice.
tell application "Calendar"
set calendarEvent to the summary of every event in calendar "Ararat Fire Brigade"
set calendarDate to the start date of every event in calendar "Ararat Fire Brigade"
repeat with i from 1 to the number of items in calendarDate
set thisDate to item i of calendarDate as text
set thisItem to item i of calendarEvent as text
tell application "FileMaker Pro Advanced"
set new_record to create new record
go to new_record
tell new_record
set field "Date" to thisDate
set field "Event" to thisItem
end tell
end tell
end repeat
end tell
On 22/07/2013, at 9:00 PM, Robert Cuilla <email@hidden> wrote:
> Good morning to everyone
>
> 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. Having a bit of trouble with this and wonder in anyone can point me in the right direction
>
> Thank You in advance
>
> Bob
>
> Orlando, FL
>
>
>
> _______________________________________________
> 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
_______________________________________________
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