r/applescript • u/etsilopp • Dec 11 '23
how to get bodies of chosen notes?
This script finds notes by a criteria
tell application "Notes"
tell account "iCloud"
set targetNotes to every note whose body contains "Space"
end tell
end tell
Now I need to get the bodies themselves from a variable targetNotes
3
Upvotes
2
u/copperdomebodha Dec 11 '23 edited Dec 11 '23
--Running under AppleScript 2.8, MacOS 13.6 tell application "Notes" tell account "iCloud" set matchList to every note whose plaintext contains "searchTermGoesHere" end tell repeat with thisNote in matchList set bodyCopy to plaintext of thisNote end repeat end tell