Created
April 25, 2016 12:25
-
-
Save nriley/0adeb13e7b530b49c85c7611ac19e850 to your computer and use it in GitHub Desktop.
Move tasks to the top of their containing task or project in OmniFocus
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
tell application "OmniFocus" | |
tell default document's first document window's content | |
set _tasks to (selected trees where its value's class is task)'s value | |
set _tasks to _tasks's reverse | |
repeat with _task in _tasks | |
tell _task's parent task | |
move _task to beginning of tasks | |
end tell | |
end repeat | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment