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

 
Help with Entourage->OF quick entry script Thread Tools Search this Thread Display Modes
I modified Sandro's script to take a message from Entourage and drop it into Quick Entry. In addition to copying the text of the message, I also embed a full copy of the original email so I can reply/forward/etc straight from OmniFocus. I then delete the original message from Entourage. The OCD in me requires my inbox to be empty. A few questions I'd love some help on:

1) Saving the email to a temp file, embedding that file in the task, then deleting the temp file is laborious. Is there an option to provide a url link to a message in Entourage like you can in the new Mail.app? I don't know what that url would look like.

2) This script stalls for 10-15 seconds between activating the Quick Entry box and deleting the message. Not sure why.

3) When activating Quick Entry, is there a way for the script to determine if the user "saved" or "cancelled"? If "saved", I would delete the original message; if "cancelled", I would not.

Thanks for any help.

M6

-- this is based on sandro@sandro.org's Entourage->OmniFocus script
-- use at your own peril as well ....

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

-- parse the email(s)
set theName to subject of theMessage
set theContent to content of theMessage
set theID to ID of theMessage as string
set theFileName to "MAC OS:Users:culbrethw: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
tell application "Finder"
delete file theFileName
end tell
delete theMessage
end repeat
end tell
 
Huh! I tried to build a script similar to this, and it didn't work for me, neither does this one, it gives me an error that the item doesn't understand the save message... what version of Entourage are you using, if I might ask?
 
Scratch that, my error. I don't get a 10-15 second delay on mine, that you describe, at all - it takes a second to do the export/import business, but not very long.
 
I think my delay is related to IMAP. I don't get the delay when the script is acting on a message from one of my POP accounts.
 
Makes sense - I only use Entourage because we have Exchange, so the delay must be IMAP specific.
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Quick entry mikegibb OmniFocus for iPad 2 2010-08-22 03:00 AM
QUICK Entry devn OmniFocus for iPhone 2 2009-04-14 11:12 AM
Script to take Entourage mail into an OF Action? Tinchohs OmniFocus Extras 11 2008-03-09 03:01 PM
Help with Entourage->OF quick entry script magnum6 OmniGraffle Extras 0 2007-12-10 07:34 AM
Script interface to launch semi-populated Quick Entry? millieaux OmniFocus Extras 4 2007-09-14 01:07 AM


All times are GMT -8. The time now is 03:19 PM.


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