The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus Extras (http://forums.omnigroup.com/forumdisplay.php?f=44)
-   -   Script to create an email from a task in OF. (http://forums.omnigroup.com/showthread.php?t=5369)

Tinchohs 2007-10-30 07:57 PM

Script to create an email from a task in OF.
 
Hi, I have come across several very useful scripts. Yet, I don't seem to find one that automates creating an email from a to do within OF. THis would allow me that after planing a project, I can go ahead and send an email to someone that is the owner of doing a given activity.

Does it make sense? How is anyone else managing this step of the process? Does anyone have a script like this?

Thanks a lot. Martin.

Lutin 2007-10-31 02:47 AM

Hi Martin,

Check out my new MailTask script at [url]http://www.cerquant.com/software[/url]

Let me know what you think, and how it can be improved.

Note: You can also drag and drop a task from OmniFocus onto Mail.app icon and it will create a mail with the name of the task in the body.

Tinchohs 2007-10-31 10:28 AM

Lutin, I love it... this closes the loop of every scrip that I need to make my workflow actually work. I'll review it more lately and give you feedback if I have any.

I thought that perhaps combing this with the delegate task could be interesting. In the same scenario you describe in your page, not only you mail Bob, but complete your todo and then have it in wainting for.

What do you think? Take care. Martin.

Lutin 2007-10-31 12:53 PM

Martin, thank you for your comment.

The combination is a good idea.
But I don't think I will use it in my system, as sometimes, I might be disturbed, and saving the email in draft instead of sending. I also like the satisfaction of checking a completed task.

This few lines of code should do what your looking for, and be generic enough to be reused in any other situation:

[code]
-- Wrapper
-- Launch one by one all the scripts of the list listOfScripts
-- Note: They have to be in the same directory

property listOfScripts : {"MailTask.scpt", "Delegated.scpt"}

repeat with aScript in listOfScripts
tell application "Finder" to set scriptPath to ((container of (path to me)) as string) & aScript
run script file scriptPath
end repeat
[/code]


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

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