Create Tasks from events

P

Paul W

Hi,

Does anyone know how I can automatically create tasks from a list of events
?

Thanks

Paul W.
 
P

Paul Berkowitz

Hi,

Does anyone know how I can automatically create tasks from a list of events
?
It would have to be done by AppleScript. But there are differences between
tasks and events, you know; and you're not telling us what you'd want to do
about these differences.

For example, tasks don't have specific times, only due _dates_. So, you'd
want the due date to be the date of the event, or you want "no due date"
tasks?

How about Reminders? If the event has a reminder, do you want a reminder for
the task to be at the same time (task reminders _do_ have times, including
2:30 pm on the day) or the day before, or when, or no reminders, or what?

Do you want Location of the event moved to the Note? How about End Time?
Just forget about that?

Recurring tasks can't be scripted. Are any of the events recurring events?
The simplest thing, by far, in that case would be to make a (non-recurring)
task and transcribe the recurrence pattern into the Note so you can remake
the recurrence yourself. Technically, it might be possible to make separate
tasks by script by parsing the recurrence pattern, but it would be absurdly
complicated.


--
Paul Berkowitz
MVP Entourage
Entourage FAQ Page: <http://www.entourage.mvps.org/toc.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.

PLEASE always state which version of Entourage you are using - 2001 or X.
It's often impossible to answer your questions otherwise.
 
P

Paul W

Thanks for your reply, Paul - I was a bit sparse with my requirement (!)

It goes like this :

Requirement : take a list of events and make a task for each one.

Description of tasks : create a task for each event - set start date,
subject, no end date, category.

Expected result : task with due date being event start date, category event
category and subject event subject, other fields to be task default.

Extra info : the list of events is a study calendar, no events overlap, no
events have the same start date, no events have an end date.

I'm using entourage x.

Thanks.

Paul W.
 
P

Paul Berkowitz

OK, it's pretty simple. The "default reminder" for tasks is No Reminder so
you've got no reminder. It would be only a little trickier to script a
reminder if you want one: it could be a default time on the day or earlier.

Save in the Entourage Script Menu Items folder. Before running it select a
list of events (which need not be contiguous) in a Calendar custom view or
Search Results.


-------------------------------------------

tell application "Microsoft Entourage"
try
set theEvents to selection
if class of item 1 of theEvents ‚ event then error number -128
on error
beep 2
display dialog "You must select a list of calendar events in a
Custom View or Search Results panel." buttons {"Cancel"} default button 1
with icon 0
end try


repeat with i from 1 to (count theEvents)
repeat 1 times
set theEvent to item i of theEvents
if class of theEvent ‚ event then exit repeat --(skip if
non-event in mixed view)
set {theName, startTime, theCategories} to theEvent's {subject,
start time, category}
set startDate to startTime - (time of startTime)

make new task with properties {name:theName, due date:startDate,
category:theCategories}
end repeat
end repeat
-- set displayed area of main window to tasks area
beep 2
display dialog "Done!"
end tell

-----------------------------------

--
Paul Berkowitz
MVP Entourage
Entourage FAQ Page: <http://www.entourage.mvps.org/toc.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.

PLEASE always state which version of Entourage you are using - 2001 or X.
It's often impossible to answer your questions otherwise.
 
Top