Guest User

Untitled

a guest
Oct 17th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. tell application "Reminders" to activate
  2. tell application "System Events" to keystroke "c" using {command down}
  3. set theNotesChecklist to ""
  4. set theReminders to get the clipboard as string
  5. repeat with thisParagraph in paragraphs of text of theReminders
  6. try
  7. set theNotesChecklist to theNotesChecklist & text 5 thru -1 of thisParagraph & return
  8. delay 0.1
  9. end try
  10. end repeat
  11. set the clipboard to theNotesChecklist
  12. tell application "Notes" to activate
  13. tell application "System Events"
  14. keystroke "n" using {command down}
  15. keystroke "l" using {shift down, command down}
  16. delay 0.5
  17. keystroke theNotesChecklist
  18. delay 0.1
  19. key code 51 -- # Delete - Deleats the last 'return' typed.
  20. end tell
Add Comment
Please, Sign In to add comment