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

 
Open in Quick Entry Thread Tools Search this Thread Display Modes
Hi, I'm trying to write a script which would take all of the information from a selected task and create a new task which opens in a quick entry box so that I can edit it. Here's what I have:

Code:
tell application "OmniFocus"
	tell front document
		tell content of document window 1
			set theSelection to value of every selected tree
			repeat with anItem in theSelection
				set itemName to name of anItem
				set itemContext to context of anItem
				set itemProject to containing project of anItem
			end repeat
		end tell
		
		tell quick entry
			open
			set newTask to make new inbox task with properties {name:itemName, context:itemContext, assigned container:itemProject}
			select {inbox task 1}
		end tell
	end tell
end tell
First of all, I can't find a way to get the name, context, etc. of the selected task without that repeat. It works, but I don't need a repeat, so I'd like to get rid of it. Also, I can't find a way to set the project. What I have now seems to just crash OF. Any help would really be appreciated.

-Matt
 
 


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
Cancel Quick Entry? sjn OmniFocus 1 for Mac 3 2007-12-16 10:38 AM
Quick Entry : no more due date ? LeBenoist OmniFocus 1 for Mac 4 2007-12-10 11:34 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 06:22 PM.


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