Skip to content

Instantly share code, notes, and snippets.

@nelsonpecora
Created July 26, 2013 21:06
Show Gist options
  • Select an option

  • Save nelsonpecora/6092238 to your computer and use it in GitHub Desktop.

Select an option

Save nelsonpecora/6092238 to your computer and use it in GitHub Desktop.
Peudo-code for potential applescript code that will list todo's from Things' "Today" list sectioned off into Areas / Projects, like they are in the UI.
# potential (pseudo)code
tell application "Things"
repeat with theList in "Today"
--- add name to json
--- add project to json
--- add area to json
end repeat
end tell
# end result should look something like:
[
{
name: "Task 1",
project: "Project 1",
area: "Area 1"
},
{
name: "Task 2",
project: "Project 1"
},
{
name: "Task 3",
area: "Area 2"
},
{
name: "Task 4"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment