Member
2008-01-12, 07:56 PM
doh- I guess I'm duplicating some work then! hahaha. I'll have to check out the scripts! Here's an idea of what I was playing with recently:
Code:
tell application "OmniFocus"
tell front document
tell document window 1
set theSelectedItems to selected trees of content
end tell
if ((count of theSelectedItems) = 1) then
set selectedItem to value of item 1 of theSelectedItems
set selectedNote to note of selectedItem
if selectedNote contains "&Q2" then
display alert "Project already is a Q2 project."
else
display alert "I will now make this project Q2"
set newNote to "&Q2: Covey Q2 Task" & return & selectedNote
set note of selectedItem to newNote
end if
return
end if
end tell
end tell
Very simple, but it may give you some ideas...
Last edited by a11en; 2008-01-12 at 09:30 PM..