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

 
Invoke Quick Entry by using Applescript Thread Tools Search this Thread Display Modes
Hi, is there a way to invoke the quick entry window, prepopulate it and display it by Applescript?

I've got this script to make a new task in my inbox, based on a selected e-mail. Because I want to add the proper project right away, I want to open the quick entry window, instead of directly putting stuff in my inbox.

On this forum I found this: http://forums.omnigroup.com/showthread.php?t=4700 But it seems rather old. Is there a way to do this, somehow?

Thanks in advance,
greets, Rogier
 
OmniFocus includes a Clipping service which does something along these lines - if you haven't already tried that, it may save you some work. It can be configured to add the clipped info to the Quick Entry window, and can also add a link back to the message in Mail.

The "Clipping material from other applications" page in the Help menu material is a good starting point on the feature - let us know if you have any other questions - happy to help!
 
Brian,

I've noticed that the Quick Entry window no longer seems to respond to Applescript in the same way as it once did -- I can stuff actions in, but activate no longer makes the window visible. I see from the 1.7 release notes that some changes were made, but I haven't seen any code from anyone since then. Obviously this change must have been tested, so if you could just post one of the simple test scripts (which would demonstrate the proper way to use the new verbiage), that would make us happy, and should be a task of trifling difficulty for you ;)
 
I believe there was a note about this in the release notes for OmniFocus 1.7… Ah, yes, here it is:

Quote:
Updated our AppleScript terminology to use "open quick entry" rather than "activate quick entry". Hopefully this will eliminate the problems people have occasionally encountered in trying to activate the app itself. (Compiled scripts which used our old activate verb may need to be recompiled, however!)
Hope this helps!

Last edited by Ken Case; 2009-11-24 at 02:33 PM..
 
Yes this helps, the following code is working now:

Code:
tell application "OmniFocus"
			tell default document
				set theContext to context myWFContext
				tell quick entry
					set theTask to make new inbox task with properties {name:theTaskTitel, note:theBody, context:theContext}
					select {theTask}
					open
				end tell
			end tell
		end tell
Thanks for your help! :)
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add quick entry task with project using AppleScript iNik OmniFocus Extras 2 2011-08-30 12:40 PM
Is there a way to invoke send to OF service from an applescript? gadgetdoctor OmniFocus 1 for Mac 4 2011-08-17 11:22 PM
Applescript that opens Quick entry Omnificus OmniFocus Extras 0 2011-02-26 07:33 AM
Quick entry mikegibb OmniFocus for iPad 2 2010-08-22 03:00 AM
Quick Entry--not! santra OmniFocus 1 for Mac 10 2007-10-10 03:44 PM


All times are GMT -8. The time now is 02:39 PM.


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