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

latest, greatest Entourage to Omnifocus Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
This script is working for me, most of this was gathered from other threads, unfortunately I have misplaced the original creators names to give credit.

tell application "Microsoft Entourage"
	-- get the currently selected message or messages
	set selectedMessages to current messages
	-- if there are no messages selected, warn the user and then quit
	if selectedMessages is {} then
		display dialog "Please select one or more messages first and then run this script." with icon 1
	end if
	repeat with theMessage in selectedMessages
		set theName to subject of theMessage
		set theContent to content of theMessage
		set theID to ID of theMessage as string
		-- set the path to a temp area on your HD to temporarily store the attachment to be loaded into OF
		set theFileName to "YourHDName:Users:Username:Temp:" & theID & ".eml"
		save theMessage in theFileName
		tell application "OmniFocus"
			set theDoc to default document
			set theTask to theName
			set theNote to theContent
			tell quick entry
				set NewTask to make new inbox task with properties {name:theTask, note:theContent}
				tell the note of NewTask
					make new file attachment with properties {file name:theFileName, embedded:true}
				end tell
			end tell
		end tell
		-- Remove the file now that it is in OF
		tell application "Finder"
			delete file theFileName
		end tell
		-- Only Uncomment if you really understand and are happy with the process and want the message to 
		-- be removed from Entourage after it gets sent to OF
		-- delete theMessage		
	end repeat
end tell

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Script to add delegated tasks from entourage to "Waiting" context in OmniFocus tarun101 OmniFocus Extras 1 2010-05-21 08:09 AM
Make it all work between Entourage 2008 and Omnifocus? berntm Applying OmniFocus 1 2009-12-10 07:06 AM
The greatest widget philonous OmniDictionary 4 2008-11-24 02:13 AM
More Entourage to OmniFocus applescripts: this time it's tasks and notes spnyc OmniFocus 1 for Mac 0 2007-06-24 09:10 AM

All times are GMT -8. The time now is 07:24 AM.

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