Eu encontrei uma solução. Altere "mySort" de acordo:
set sort1 to "Date Edited"
set sort2 to "Date Created"
set sort3 to "Title"
set mySort to sort1
tell application "System Events"
tell application process "Notes"
set frontmost to true
keystroke "," using command down
delay 1
tell window "Preferences"
#click static text "Sort notes by:" of group 1
#set winstuff to entire contents of every group
delay 0.5
click pop up button 3 of group 1 of window "Preferences" of application process "Notes" of application "System Events"
delay 0.1
click menu item mySort of menu 1 of pop up button 3 of group 1 of window "Preferences" of application process "Notes" of application "System Events"
delay 0.1
keystroke "w" using command down
end tell
end tell
end tell