This script will disable (un-check) the tracks of selected playlists and Smart playlists whose last played date is before a user-entered date.
Perhaps Also of Interest...
downloaded 1m 28s ago
Title Cap various track tags, featuring editable exceptions lists
downloaded 24m 1s ago
Set Last Skipped date of selected tracks to today or today minus your number of days.
downloaded 27m 58s ago
Delete files downloaded and cached by Apple Music
downloaded 29m 34s ago
Export selected playlists as individual XML or M3U files
downloaded 30m 37s ago
Remove iTunes tracks disassociated from files
downloaded 32m 35s ago
Delete all or selected empty playlists