This isn’t exactly a problem, it’s easy to deal with. I just noticed this unintuitive difference in behavior.
set currentDate to the current date
set theMonth to the month of currentDate
set theDay to the day of currentDate
set theYear to the year of currentDate
Results:
currentDate: date “Monday, January 4, 2021 at 6:21:46 PM”
theMonth: January
theDay: 4
theYear: 2021
set currentDate to the current date
tell currentDate
set theMonth to the month
set theDay to the day
set theYear to the year
end tell
Results:
currentDate: date “Monday, January 4, 2021 at 6:21:46 PM”
theMonth: month
theDay: 4
theYear: 2021
“month” seems to be a recognized term by Applescript in a different manner from “day” and “year.”