I would lime to read the content of a selected note with AppleScript. Here is the simplified script:
using terms fromapplication "Notes"
tell application "Notes"
log selection
log (count of selection)
log item 1 of selection
set theNote to item 1 of selection
log name of theNote
end tell
endusing terms from
Unfortunately I get the error message. Here is the log output:
(*selection*)
(*1*)
(*item 1 of selection*)
Result:
error "Notes got an error: Can’t make item 1 of selection into type specifier." number - 1700 from item 1 of selection to specifier
Has someone an idea?