#!/usr/bin/osascript --this line checks if Things is running when this script is launched tell application "System Events" to set alreadyrunning to exists (processes where name is "Things") --this makes a line break between todos set AppleScript's text item delimiters to {(ASCII character 10)} tell application "Things" log completed now --don't want to see completed tasks set todos to "" repeat with todo in to dos of list "Today" set todoDescription to (name of todo as text) set todoProject to project of todo if todoProject is not missing value then set todoDescription to name of todoProject & ": " & (name of todo as text) end if set todoTagNames to (tag names of todo) if todoTagNames is not "" then set todoDescription to todoDescription & " " & "(" & todoTagNames & ")" end if set todoDescription to "-" & todoDescription & "\n" set todos to todos & (todoDescription as text) end repeat return todos end tell