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
I am new to mac, entourage, omnifocus but pretty hapy after a few weeks.

I know this has been covered in part, but some of the links here listed under entourage and omnifocus are actually entourage only scripts and tips.

My specific question is whether anyone has successfully linked an Entourage email to a new task with a link to the email in the omnifocus new task? I have gotten Sandro's macro to work, but without a link to the actual email it makes it a lot less useful. His script pastes the body of the message into the note field, but I saw someone else mention it should be possible to have a link to the actual email--so once the task is acted on a single click would bring up the email for action.

Also, I cannot get Omnifocus to 'come to the front' after running the macro from entourage--any tips on that?

If I am missing something, i apologize. Been searching and reading here for a couple of hours and this specific question/answer has eluded me.

Thanks,

Rob
 
I agree that it would be much better to have the task link back to the Entourage email but I haven't been able to find a solution for that. As a matter of fact, I don't believe that one can link back to specific emails in Entourage. If anyone has been able to do so, or knows of a solution, please let me know and I will integrate it asap...

As far as getting OmniFocus to come to front, Omni broke (or something to that effect) the 'activate' applescript command a while ago so I simply commented it out of the script. I haven't gone back to test it out because I have actually come to prefer not having OF come to the front. By all means try uncommenting the line and see if it works for you.
 
hmm, as entourage supports Sotlight and I can easily open a specific email via that, there should be a way to do this, maybe through spotlight?
 
I'd like to bump this. I'm now being pushed to use Entourage/Exchange/Blackberry through work and am quite shocked to see there's very little on how to integrate OF into this sort of workflow.
 
I'm not on a machine with Entourage, but I can point you in the right direction:

Every Entourage item has a unique ID that's part of its properties. That UID is also found in the spotlight metadata of its spotlight cache item.

So.....

You can use a "do shell script" to run an mdfind for the appropriate UID and then create a link to that spotlight cache file. Opening the file will open the appropriate message in Entourage.

Not quite EASY, but it does get the job done. I've had to do the same thing with Mail before.
 
Hi iNik,
I'm pretty new at this, but I tried the do shell script as you described and it didn't work. I might have messed up on adding the link to that spotlight cache file. Any suggestions?
 
Quote:
Originally Posted by spnyc View Post
I agree that it would be much better to have the task link back to the Entourage email but I haven't been able to find a solution for that. As a matter of fact, I don't believe that one can link back to specific emails in Entourage. If anyone has been able to do so, or knows of a solution, please let me know and I will integrate it asap...

.
As it seems to be the case that indeed there is no way to link back to the Entourage email, am I safe to assume that it is also impossible at this point to link a file (or a reference to a file) from an email, or for that matter from the Finder, to a note in OF through AppleScript?
 
Quote:
Originally Posted by MB_UST View Post
As it seems to be the case that indeed there is no way to link back to the Entourage email, am I safe to assume that it is also impossible at this point to link a file (or a reference to a file) from an email, or for that matter from the Finder, to a note in OF through AppleScript?
A bit of browsing of OmniFocus' dictionary in Script Editor does reveal some support for file attachments in the rich text section...but I couldn't tell you if it is sufficient to do what you want.
 
One can easily create an event and paste the text of the email in the note field by using the parse task with transpor text command. The problem, as noted above, is that there is no reference to the original email. How would one use this command or any other command to attach to the action item that parse taks creates? Has anyone successfully attached a file to an action item? If so, what is the syntax? The dictionary is not so helpful here, I don't think.
 
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.

Code:
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
		return
	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
				activate
			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 03:02 AM.


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