Skip to content

Instantly share code, notes, and snippets.

@nriley
Created April 25, 2016 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nriley/0adeb13e7b530b49c85c7611ac19e850 to your computer and use it in GitHub Desktop.
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
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