The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniFocus > OmniFocus Extras
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Task to Entourage Event Thread Tools Search this Thread Display Modes
Here is a script (based on's script for creating an entourage mail message) that makes a new Entourage calendar event from an Omnifocus task.

Event subject = task subject
Event Notes = task notes
Event Date = task due date

tell application "OmniFocus"
	tell front document
		tell document window 1
			set theSelectedItems to selected trees of content
			if ((count of theSelectedItems) < 1) then
				display alert "You must first select a single task." message "Select a single task before running this script." as warning
			end if
			if ((count of theSelectedItems) > 1) then
				display alert "You must select only one task." message "Select a single task before running this script." as warning
			end if
		end tell
	end tell
	set theDoc to document window 1 of document 1
	--	set theSelectedTask to the «class OTva» of item 1 of selected tree of the content of theDoc
	set theSelectedTask to value of item 1 of theSelectedItems
	set eventSubject to name of theSelectedTask
	set eventContent to note of theSelectedTask
	set eventDate to due date of theSelectedTask
	if (eventSubject = "missing value") then
		set eventSubject to ""
	end if
end tell

tell application "Microsoft Entourage"
	set newCal to make new event at draft window with properties {subject:eventSubject, content:eventContent, all day event:false, start time:eventDate}
	open newCal
end tell
Your script sounds very useful the way I use OF. But I just switched from using Entourage to iCal! Is there any script that you know of which can take an OF task and make an iCal event (not a todo!). If not, anyone willing to take on the challenge... at least it would be a challenge to me!

Eric, I think there are a couple different scripts in the "OmniFocus Extras" forum that may work for you. Here's a good starting point:
Selected Tasks to iCal
Hi I'm getting an error message -1700 when I activate this script any ideas

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
After Event in iCal create task in OF floime OmniFocus 1 for Mac 4 2011-11-10 11:27 PM
Entourage-to-OF Task Export with two-way sync davidsomeone OmniFocus Extras 1 2009-02-19 08:27 AM
OF, task/event reminders and iPhone [Thread obsoleted by iOS 5.] Rup OmniFocus 1 for Mac 10 2008-12-02 06:59 PM
.ics files appear to contain just one task in Entourage? Peachpit OmniPlan General 4 2008-04-11 10:05 AM
Create Entourage Message from OF Task spnyc OmniFocus Extras 1 2007-10-20 07:48 PM

All times are GMT -8. The time now is 09:45 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.