Skip to content

Instantly share code, notes, and snippets.

@sourcecodemage
Created November 25, 2019 03:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sourcecodemage/33bf96da5c93313df84e7a31c36e18b4 to your computer and use it in GitHub Desktop.
Save sourcecodemage/33bf96da5c93313df84e7a31c36e18b4 to your computer and use it in GitHub Desktop.
Import Reminders from text file
set theFileContents to (read file "Users:$USER:Desktop:tasks.txt")
set theLines to paragraphs of theFileContents
repeat with eachLine in theLines
tell application "Reminders"
set mylist to list "Inbox"
tell mylist
make new reminder at end with properties {name:eachLine}
end tell
end tell
end repeat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment