Created
May 29, 2015 17:13
-
-
Save semicolonsnet/14933912615dd243e5c0 to your computer and use it in GitHub Desktop.
Makes a Reminders list from a text file template (each line is a new task)
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
tell application "System Events" | |
set QueueList to display dialog "List Name" default answer "" | |
set listName to text returned of result | |
tell application "Reminders" | |
set myList to make new list | |
set name of myList to listName | |
set myFile to "FILE NAME HERE" | |
set myText to read myFile | |
set theList to paragraphs of myText | |
repeat with listItem in theList | |
set newRemin to make new reminder in myList | |
set name of newRemin to listItem | |
end repeat | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment