Skip to content

Instantly share code, notes, and snippets.

@csexton
Created October 15, 2015 18:44
Show Gist options
  • Save csexton/dd0b95956f7644d0efba to your computer and use it in GitHub Desktop.
Save csexton/dd0b95956f7644d0efba to your computer and use it in GitHub Desktop.
on handle_string(theString)
if theString is not "" then
tell application "OmniFocus" to parse tasks into default document with transport text theString
else
display notification "No string to work with." with title "LaunchBar" subtitle "Add to OmniFocus"
end if
end handle_string
on run {input, parameters}
tell application "OmniFocus" to parse tasks into default document with transport text input as string
display notification "Done" with title "LaunchBar" subtitle "Add to OmniFocus"
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment