Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/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
- if not alreadyrunning then quit --if ran by me then quit
- set the_output to ""
- repeat with ar in areas
- set the_output to the_output & name in ar & return
- set current_area to name in ar
- -- This is the part where I want to get items from this area that are only in "Today" (or just uncompleted ones)
- repeat with aTodo in to dos of area current_area
- set the_output to the_output & " - " & name in aTodo & return
- end repeat
- end repeat
- return the_output
- end tell
Add Comment
Please, Sign In to add comment