Guest User

Untitled

a guest
Jul 16th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. on run
  2. tell application "Things"
  3. set todoTitles to {}
  4. repeat with toDo in to dos of list "Today"
  5. set end of todoTitles to the name of toDo
  6. end repeat
  7. end tell
  8. set tid to AppleScript's text item delimiters
  9. set AppleScript's text item delimiters to "
  10. "
  11. set todoTitles to todoTitles as string
  12. tell application "System Events" to set GrowlRun to (count of (every process whose name is "GrowlHelperApp")) > 0
  13. if GrowlRun then growlNotify(todoTitles)
  14. end run
  15.  
  16. on growlNotify(theToDos)
  17. tell application "GrowlHelperApp"
  18. set the allNotificationsList to {"Display Tasks"}
  19. set the enabledNotificationsList to {"Display Tasks"}
  20.  
  21. register as application "Things Display" all notifications allNotificationsList default notifications enabledNotificationsList icon of application "Things"
  22. notify with name "Display Tasks" title "Today's Tasks" description theToDos application name "Things Display" sticky yes
  23. end tell
  24. end growlNotify
Add Comment
Please, Sign In to add comment