I cannot believe how hard this is to solve, but I am stamped. I need to get dates simular to this
set {year:y, month:m, day:d} to (current date)
but instead of current date, I need tomorrow’s date. or a date two days from now. No mixture of adding +1 or +2 to (current date) will result in a change of the date that gets output. If I manually add 1 or 2 to my days, months or years I need to check to make sure May hasn’t slipped into June, and 2019 into 2020, and so on.
There has to be an elegant way to get the year, month and day of one or two days in the future, that isn’t prone to breaking left and right. Hope someone can help!
I specifically wrote “custom day” in this form, so that a person would understand why his script with “+ 2” showed “today’s frozen date.” The problem with experienced programmers is one - they can not clearly explain to the beginner what they are wrong. In any case, it is better to teach a novice programmer to think for himself so that he can do the math with dates in AppleScript himself.