Filemaker to Entourage trigger

Hi,
I am trying to trigger an applescript via filemaker to add a date field as a
calendar even into Entourage. Unfortunately the date format seems to be
wrong. Also, the category format is wrong too. Thank you very much for your
suggestions:

tell application “Microsoft Entourage”
activate
make new event with properties {content:“Brita&james”, due
date:4/3/2004, remind date and time:4/12/2004, subject:“tessst”, start
time:4/15/2004, category:business}
end tell

It accepts standard dates:

tell application "Microsoft Entourage"
    set new_event to make new event with properties {subject:"tessst", content:"Brita&james", start time:date "Saturday, April 3, 2004 12:00:00 AM", end time:date "Thursday, April 15, 2004 12:00:00 AM", remind time:7200}
    set category of new_event to (get categories whose name = "business")
end tell

Jon

Thanks Jon, works great. How would I even know? The Entourage dictionary says nothing about the format. I used the Applescript language guide and could not find any usefull info either. How did you learn how to write this? Thanks again
K

Hi,

The Entourage dictionary for ‘event’ element:

Class event: A calendar event
Plural form:
events
Properties:
ID integer [r/o] – the event’s unique ID
subject Unicode text – subject of the event
location Unicode text – location of the event
content Unicode text – description of the event
start time date – time at which the event starts
end time date – time at which the event ends
all day event boolean [r/o] – is the event an all day event?
recurring boolean [r/o] – is the event recurring?
recurrence string – the iCal recurrence rule
category a list of reference – the list of categories
links a list of reference [r/o] – the list of linked items
properties record – property that allows setting a list of properties
remind time integer – time in minutes from the start time

it says that the class is date (AppleScript date). There’s a lot about dates in the AppleScriptLanguageGuide.pdf. Sometimes if I’m having trouble with an application, I make a test example, get the example, and look at its properties. For instance, I create a test event for tomorrow in Entourage. Then, I run this script:

tell application “Microsoft Entourage”
set last_event to last event
properties of last event
end tell

Then, looking at the result, you know the form of the property. Another way is to get the seleciton and look at it’s properties. Sometimes these don’t work and you need to play around with variations.

gl,