I just saw this post, but I was not able to do so with Apple Notes. What I am trying to do is to use .localized (I don't think Apple Notes have this anymore) to avoid problems with another languages when I filter the notes to fetch all notes, but "Recently Deleted" ones. This is the AppleScript I am using:
tell application "Notes"
set output to ""
repeat with eachFolder in folders
set folderName to name of eachFolder
if folderName is not "Nylig slettet" and folderName is not "Recently Deleted" then
repeat with eachNote in notes of eachFolder
set noteName to name of eachNote
set noteID to id of eachNote
set output to output & noteID & "|" & folderName & " - " & noteName & "\n"
end repeat
end if
end repeat
return output
end tell
I am using the Norwegian translation here too because my system is in Norwegian.
Does anyone knows a solution to this? I checked into Apple Notes/Contents/Resources, but I did not find any .strings.