Created
November 25, 2019 03:36
-
-
Save sourcecodemage/33bf96da5c93313df84e7a31c36e18b4 to your computer and use it in GitHub Desktop.
Import Reminders from text file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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