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 1 for Mac
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
I Want to email tasks from OF Mac the same way I do from OF iPad? Thread Tools Search this Thread Display Modes
Does anyone know of an Applescript which will allow me to email a Task with Notes from the Mac version of OmniFocus to another user, the way I can from the iPad version?

Since we've lost our connection to iCal I am wanting to email tasks directly to team members instead of sending out .PDFs and a script which would send the same sort of Task attachment file the iPad does would be a great time saver.

This is what the link would look like (but I have no idea how to create an AppleScript in order to automate this):

omnifocus:///add?name=The Task Name Goes Here&note=This would be the nice little detailed note I would attach to the Task I email.

Could anyone provide any assistance?

Thanks,
-policarpo

Last edited by policarpo; 2010-11-01 at 10:09 PM..
 
Here's some script I could knock together before my wife came by to pick me up. :-)

This has some limitations, but it's a good skeleton to hang some more code off of, at least.

Things I know need more work:
1) I suspect that the action names and note text needs to be URL-encoded for this to work correctly; a google search may be the best place to start there.
2) Rather than just return-ing the text, you'll need to put it on the clipboard or otherwise send it along to your Mail client...

There are probably other places where this could be improved, as well, but hopefully it helps get you started...

Code:
set returnText to "" as text
set taskName to "" as text
set taskNote to "" as text

tell application "OmniFocus"
	set theDoc to document window 1 of default document
	set TaskList to the value of the selected tree of the content of theDoc
	if (count of TaskList) is equal to 0 then -- nothing is selected
		display alert "No items selected" message "To forward an action as email, at least one action must be selected in the frontmost OmniFocus window. Please do so, then try again." buttons {"Stop"} default button 1 as warning
		return
	end if
	
	repeat with theSelectedTask in TaskList
		set taskName to (name of theSelectedTask as rich text)
		set taskNote to (note of theSelectedTask as rich text)
		set returnText to returnText & ("omnifocus:///add?" as rich text)
		set returnText to returnText & "name=" & taskName & "&note=" & taskNote & return
	end repeat
	
	return returnText
end tell
 
Thanks,

Have you been able to look into this anymore?
 
This is a functionality that I would really use to death. I'd love to be able to email OF tasks/notes to myself or colleagues.
 
Yeah, i really miss this. I use it all the time in 2Do with my Wife. 2Do just does multi-selecting and sharing very very well.
 
I love that feature, using it every day on my iPad!

I hope that it will be implemented in OF Mac soon.
 
In case it's useful to folks, one of our support ninjas created a web form that creates OmniFocus task links via javascript. (The javascript all executes in the browser; information is not sent to his server.)
 
That's cool. Anyway to have that work with OF on the desktop so I can email an existing task to another OF user?
 
I'd love to have a shortcut that would turn an omnifocus task into an email. Last month I sent out a request to a staff member via email for some info. At present I use the response to activate my 'next step'... But they didn't respond and I forgot about following it up.

At present the only solution seems to be to set Mail to send me a copy and then to clipotron that to Omni. That's untidy and creates multiple copies.

It would be much easier to create the request in OF, and clip it to an email where I only have to fill out the address.

Please?
 
Bringing the "Email a task" feature that we did as part of our work on the iPad application to the other two editions is something we want to do; just haven't been able to fit it on the schedule yet.
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending IPad Tasks to Email to Print MiamiRob OmniFocus for iPad 2 2011-08-09 11:20 PM
Processing email on the iPad email68 OmniFocus for iPad 18 2011-08-08 02:22 AM
Adding tasks in inbox on iPad deletes other tasks kocab OmniFocus for iPad 2 2010-07-30 09:37 PM
Can't email files from iPad adamec514 OmniGraffle for iPad 4 2010-05-19 05:23 PM


All times are GMT -8. The time now is 07:42 PM.


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