Script for creating events

P

Piyush Mehrotra

I created a script to create an event using control-E \cE using the
selected email message (see script fragment below)

-- get the information from the message, and store it in variables
set theName to subject of theMessage
set theCategory to category of theMessage
set thePriority to priority of theMessage
set theContent to content of theMessage

-- create a new event with the information from the message
set newEvent to make new event with properties {subject:theName,
content:theContent, category:theCategory, priority:thePriority}



This works fine except that in the event that is created the Reminder
checkbox is not checked. Could anybody what the name of the property is so
that modify the above property list to have the reminder box checked by
default.

Thanx

- Piyush
 
B

Barry Wainwright

I created a script to create an event using control-E \cE using the
selected email message (see script fragment below)

-- get the information from the message, and store it in variables
set theName to subject of theMessage
set theCategory to category of theMessage
set thePriority to priority of theMessage
set theContent to content of theMessage

-- create a new event with the information from the message
set newEvent to make new event with properties {subject:theName,
content:theContent, category:theCategory, priority:thePriority}



This works fine except that in the event that is created the Reminder
checkbox is not checked. Could anybody what the name of the property is so
that modify the above property list to have the reminder box checked by
default.

Thanx

- Piyush


From the Dictionary:
remind time integer -- time in minutes from the start time

-- create a new event with the information from the message
set newEvent to make new event with properties {subject:theName,
content:theContent, category:theCategory, priority:thePriority,
remind time: 10}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top