- quit notes
- disconnect from the internet
- restore ~/Library/Containers/com.apple.Notes/Data/Library/Notes directory
- relaunch notes.
- now try and do some fake editing in each note inorder to change the last modified date to most current time.
- reconnect to the internet
- let icloud sync the notes to all devices...
I turned it around: not backing up Notes but backing up iCloud (and/or syncing it to another cloud provider).
Have a look at this: http://support.apple.com/kb/HT4910?viewlocale=en_US&locale=en_US
For me, this is the fix. I have stopped searching for alternative apps (which don't really exist) and I'm using Notes again without really worrying about having lost any data when an empty Notes shows up.
If you need to get back your notes, you first disconnect from internet... Then copy your notes to a safe place (desktop).. Then delete the folder at your library and then copy the safe folder back to notes at library... you can see one old file date..that is the main file you need to get back the notes.. You can delete the other 2 new dated ones as they are copy from icloud.. Now you can enjoy opening your note.app and you will see all your old notes are back
This works..remove the existing files, restore the 3 files mentioned below, then reopen Notes. However before reconnecting to the network you must update the last modified time of the restored notes to the current time so that iCloud does not overwrrite them.
If you dont have hundreds of files you can do this by simply by opening each note and and making a minor edit such as adding a space.
William Lloyd wrote:
So the actual database that you want is a Core Data database.
You would need to restore the contents of your ~/Library/Containers/com.apple.Notes/Data/Library/Notes directory.
There are 3 files in there:
I think if you restore that directory to a point in time you should be able to recover the notes. However, because it syncs with iCloud, there is the possibiilty that they would be immediately deleted again from a server-side command.
Thanks for this!!!
I followed these instructions and it worked.
I disconnected from the internet first.
Coppied the files to my desktop.
Then just coppied and pasted them ontop of the current files, replacing them.
This restored my notes that I had lost.
Then I coppied the note that I wanted to keep.
Pasted it in as a new note.
This gave me two versions on the same note.
Then turned the internet back on, and it deleted the old vesion, keeping the new version.