|
|
|
|
|
by dwmbt
1101 days ago
|
|
i used this to learn swift myself and wished there was a newsletter to send out a reminder for me. instead, i used this apple script to generate a reminder every day for me. you can open Script Editor on your mac and run this. it will start today and schedule a new alert with the appropriate link :) ```AppleScript set baseURL to "https://www.hackingwithswift.com/100/swiftui/" set numberOfDays to 100 tell application "Reminders" set swiftList to make new list with properties {name:"100 Days of Swift"} repeat with i from 0 to numberOfDays set dayNumber to "Day " & i
set dayLink to baseURL & i
set reminderDate to (current date) + (i \* days)
tell swiftList to make new reminder with properties {name:dayNumber, body:dayLink, due date:reminderDate}
end repeat
end tell``` |
|