Created
June 3, 2015 03:13
-
-
Save cdzombak/f367511c8a102a9e6404 to your computer and use it in GitHub Desktop.
OmniFocus AppleScript to move an action to my "❌ Dropped" context and mark it completed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
property droppedContext : "Dropped" | |
tell application "OmniFocus" | |
tell front document | |
try | |
set theDroppedContextID to id of item 1 of (complete droppedContext as context) | |
set theDroppedContext to first flattened context whose id is theDroppedContextID | |
on error | |
display alert "No context found whose name contains “" & droppedContext & "”" | |
return | |
end try | |
tell content of document window 1 | |
set taskList to get value of every selected tree | |
repeat with aTask in taskList | |
set context of aTask to theDroppedContext | |
set completed of aTask to true | |
end repeat | |
end tell | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment