It's necessary to add the parameter: -
However, on the Mac, this file isn't in the normal place, but instead is here: -
so, in my case, it's located here: -
Select the file, and then choose Open With -> TextEdit.
dyld: Library not loaded: @executable_path/libnotes.dylib
Referenced from: /Applications/Notes.app/Contents/MacOS/Support/./NotesCompact
Reason: image not found
and then execute it from there: -
./NotesCompact GBHX9675.NSF -C
[B483:0002-A04B1540] Enter password (press the Esc key to abort):
[B483:0005-B0150000] 17/04/2011 16:42:10 Informational, database design compression is enabled in database GBHX9675.NSF.
[B483:0005-B0150000] 17/04/2011 16:42:11 Informational, LZ1 is enabled in database GBHX9675.NSF.
[B483:0005-B0150000] 17/04/2011 16:42:11 Compacting GBHX9675.NSF (Dave Hay), GBHX9675.NSF -C
[B483:0005-B0150000] 17/04/2011 16:42:21 Compacted GBHX9675.NSF, 0K bytes recovered (0%)
[B483:0002-A04B1540] 17/04/2011 16:42:22 Database compactor process shutdown