4 ms·
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 ever
by dwmbt 3y 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/ 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
```
- marcellus23 3y agonote that Swift != SwiftUI, and there are "100 days" courses for both of them.
- solarmist 3y agoThe URL is correct for SwiftUI.
- marcellus23 3y agoYeah, I know, but the comment mentions Swift everywhere else, including in the name of the list being created in Reminders. The conflation of Swift and SwiftUI also shows up a few other times in the comments here.
- dwmbt 3y agoahhh yeah, wish i could update my comment to give that context. i learned swift via swiftui, as it seemed like the most accessible avenue (as far as quality resources go)!
- jb1991 3y agoThis course includes Swift language tutorials and the author has said it replaces the original 100 days of Swift course in most cases, which was UIKit-centric.