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

 
AppleScript that adds Waiting For emails from Mail.app (delegated tasks) to OmniFocus Thread Tools Search this Thread Display Modes
All,

I've developed a small script that uses MailTags and an Mail.app outbox rule to add a task to the OmniFocus Inbox for every task you delegate by email and tag accordingly before sending. It automatically assigned the right context to the tasks, offers some level of customisation and uses Growl to display notifications once the task has been added to OF.

Check here for description, instructions and download. I hope you enjoy the script and find it as useful as me.

Cheers,

simplicitybliss
 
I cannot get this script working. It simply does not create the task. Any help would be appreciated.
 
Quote:
Originally Posted by menza View Post
I cannot get this script working. It simply does not create the task. Any help would be appreciated.
Is your waiting context nested by chance? I could not get it to work either if my waiting for context was a sub-context. Once I changed it to a top level context, the script works fine.

As a question to simplicitybliss, I noticed that you include a link to the original email in the OmniFocus task. That link does not work for me-takes me to Mail but the sent message is not selected. It seems logical that the link would not work, as I assume the outgoing message is not written to the 'Sent' items folder until after the outgoing Mail rule is executed, but I'm curious why you included the link, or does the link actually work for you?
 
Greg,

I modified the script so that link back to the original email now works. Please check the link to the original blog post to re-download the script from there. Thanks.

With regards to the issue with nested "waiting for contexts", I haven't have a solution yet, but I can confirm that in this case no task is created and the script stays quiet.

If anyone can help on assigning tasks to a nested context using AppleScript it would be highly appreciated.

Cheers,

simplicitybliss
 
Link back now works great-thanks!
 
I have been able to get this to work and after some googling I have found several places where it is stated that Rules on outgoing will not work automatically since you have apply Rules manually on specifically the folder Sent (I have this stored on our Exchange server if it makes any difference). How do you guys make the Rules work automatically on outgoing mails?
 
Hmm.. after a while I figured out that I needed Mail ActOn installed to make Outbox rules, however this didn't quite smoothly anyways. I made an Outbox rule but there seems to be some issue with running the script. All other actions I set on the Outbox rule triggers quite decently (for example setting Mail Tags keywords etc) but the script doesn't run. Any idea on what is wrong?

/Eskil
 
Sorry I did not see your question sooner on the outbox rules.

As to getting the script to run, make sure that you have a waiting for context that is not nested, and edit the script so that the script matches the name of your context. That's all I needed to do and it worked fine.
 
The strange thing is that the rule itself seems to work. If I have the rule as an inbound rule and then manually choose "Apply rules" from the menu the magic happens. But for some reason it doesn't seem like it works when I have the very same rule as an Outbox rule.

I am a bit curious if it has something to do with Exchange 2007. At the moment Mail.app feels very shaky and lots of other problems communicating with the Exchange-server..

Hopefully not many days left of that now..

/Eskil
 
I'd suggest asking about outbox rules and Exchange 2007 over on the Mail-Act-On forum. That would help narrow the problem down to Exchange or the script.
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to deal with delegated or "waiting for" actions bisimpson Applying OmniFocus 20 2013-02-27 06:52 AM
Delegated tasks? mattw OmniFocus 1 for Mac 35 2011-10-07 02:10 PM
Sync with Omnifocus on Mac adds completed tasks.. ohla313 OmniFocus for iPhone 7 2011-06-13 08:50 AM
Script to add delegated tasks from entourage to "Waiting" context in OmniFocus tarun101 OmniFocus Extras 1 2010-05-21 08:09 AM
Adding Tasks Via Send To OmniFocus Mail Rule, Mailtags, & Mail Act-On reuben OmniFocus 1 for Mac 0 2007-11-18 06:07 PM


All times are GMT -8. The time now is 06:43 AM.


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