Export stickies created by Stickies.app
- Install National Velocity (NV) and start the application
- In Finder open your
Library folder and locate StickiesDatabase
- Drag
StickiesDatabase into the list of notes in NV main window (see here for reference)
- In NV select any number of notes and choose
Export from the menu
If you prefer to write your own code, have a look at Learning Cocoa with Objective-C which explains how to reverse-engineer the StickiesDatabase format.
Export Dashboard stickies
Run this in Terminal.app
plutil -convert json -r -o - ~/Library/Preferences/widget-com.apple.widget.stickies.plist |
awk '$1 ~ /-data/ { start=index($0, ":")+3
end=length($0)-2
sticky=substr($0, start, end-start+1)
gsub(/<.?.?div>/, "", sticky)
gsub(/<br>/, "\n", sticky)
print sticky
print "---" }' > ~/all-my-stickies.txt
~/Library/Preferences/widget-com.apple.widget.stickies.plistand could be extracted from there. – patrix♦ Aug 5 '12 at 15:13