This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Notes" | |
launch -- seems to work better than 'activate' | |
repeat with anAccount in accounts | |
set accountTitle to the name of anAccount | |
repeat with aFolder in folders of anAccount | |
repeat with aNote in notes of aFolder | |
set myTitle to the name of aNote | |
set myText to the body of aNote | |
set myCreateDate to the creation date of aNote | |
set myModDate to the modification date of aNote |