Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!

An AppleScript to export all Stickies as text Apps
As you may know, Stickies isn't scriptable except through System Events. There is a menu item to export the text from a Sticky, but there is no command to export all Stickies to a text file at once. Hopefully, one day Apple will implement this function.

Until that day, though, here is a script that will allow you to export the text from all of your Stickies. A text file will be created for each Sticky that you have created. With all of your Stickies exported, you can search the exported Stickies via Spotlight, which is currently not possible unless you know how to build a stickies plug-in for Spotlight (which doesn't appear to be easy). It will not export images or movies; perhaps I will create a script that can extract images or movies if someone else doesn't beat me to it.

I saved the script as an application and placed it in the Dock for whenever I need to export all my stickies.

[robg adds: This works as described; when you run it, you'll get a dialog asking where you'd like the exported notes to be saved. Choose a folder, and very quickly, the export will be done.]
    •    
  • Currently 5.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[10,601 views]  

An AppleScript to export all Stickies as text | 15 comments | Create New Account
Click here to return to the 'An AppleScript to export all Stickies as text' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
An AppleScript to export all Stickies as text
Authored by: osxpounder on Tue, Feb 7 2006 at 6:59AM PST
I'm sorry to report that it fails for me after saving 5 to 7 Stickies [of my total of 22 Stickies notes]. I find it curious that the number of files it manages to create isn't exactly the same, each time I try.

---
--
osxpounder

[ Reply to This | # ]
An AppleScript to export all Stickies as text
Authored by: myhd on Tue, Feb 7 2006 at 8:30AM PST
Does not work here, either. Managed to export zero of nine notes. No embedded images or other binary stuff. Hmm. Any ideas?

[ Reply to This | # ]
An AppleScript to export all Stickies as text
Authored by: roncross@cox.net on Tue, Feb 7 2006 at 11:06AM PST
What kind of error did you get? Are you running Tiger on Mac OS X 10.4.4?

thx
RLC

---
rlc

[ Reply to This | # ]
An AppleScript to export all Stickies as text
Authored by: myhd on Wed, Feb 8 2006 at 1:41AM PST
Hi,

No error, just no files got saved. Running 10.4.4 -- German is set as UI language (interestingly, even though "Stickies" is called "Notizzettel" in the localized version, the *process* name (see your script) is still "Stickies") .... hope this helps!

[ Reply to This | # ]
An AppleScript to export all Stickies as text
Authored by: roncross@cox.net on Wed, Feb 8 2006 at 5:48PM PST
Sorry I am not able to help in this regards. I didn't test my script against other languages and in fact I always assume that these scripts were transparent to different languages- I guess I am wrong. Maybe someone else may be able to offer some advice in this area.

thx
RLC

---
rlc

[ Reply to This | # ]
No files exported
Authored by: foop on Mon, Mar 27 2006 at 9:07AM PST
Nothing is exported (no files written) for me when I run this script. Best I can tell from the AppleScript log, the script is unable to get any window names:

tell application "System Events"
get name of every window of application process "Stickies"
{}
end tell

I'm running 10.4.5. Anyone else see this behavior?

[ Reply to This | # ]
An AppleScript to export all Stickies as text
Authored by: muzak75 on Tue, Feb 7 2006 at 9:39AM PST
This may be painfully evident, but you can also export all your stickies by saving as a PDF in the Print dialog. Exports the images as well and text is selectable for copy/paste operations. Of course, it's not as easy to export them separately, since it saves either one or all in one PDF, depending on the options you select.

Anyway, it worked for me. I just needed a backup of the info in all of my stickies and got it quickly that way...

[ Reply to This | # ]
An AppleScript to export all Stickies as text
Authored by: eddy_k on Tue, Feb 7 2006 at 10:26AM PST
I didn't know it was possible to print all notes... And just open the pdf file in Textedit and I am all done!
Nice.

[ Reply to This | # ]
An AppleScript to export all Stickies as text
Authored by: roncross@cox.net on Tue, Feb 7 2006 at 11:01AM PST
How do you import them back into stickies if you need to use them again?

thx
RLC

---
rlc

[ Reply to This | # ]
An AppleScript to export all Stickies as text
Authored by: mark hunte on Tue, Feb 7 2006 at 1:08PM PST
use the import menu.

One thing with this is, if your sticky is rich text of rtfd

then it will be stripped to plain text.



---
mh

[ Reply to This | # ]
An AppleScript to export all Stickies as text
Authored by: roncross@cox.net on Tue, Feb 7 2006 at 1:40PM PST
I was referring to how you import them back from pdf into stickies? When you do this, you lose some of the formatting. Plus it will not parse out the stickies.

thx
RLC

---
rlc

[ Reply to This | # ]
An AppleScript to export all Stickies as text
Authored by: muzak75 on Tue, Feb 7 2006 at 4:27PM PST
It's definitely not the best way, but you can select the text from the PDF and copy/paste it into a new note. Haven't really had the need to import them yet...

Anyone else?

[ Reply to This | # ]
An AppleScript to export all Stickies as text
Authored by: ccgaudette on Tue, Feb 7 2006 at 9:08PM PST
Interesting. Using Mac OS X 10.4.4 here, I can only print to PDF the first 44 notes -- using the "Print All Notes..." function. I have roughly 100 notes, each note is collapsed to just the title bar and sorted by color, and as it turns out sub-sorted by alpha.

[ Reply to This | # ]
An AppleScript to export all Stickies as text
Authored by: bbh on Wed, Feb 8 2006 at 2:03PM PST
Yes, Like an earlier poster, I found that Stickies will output a PDF file of all your stickies through the Print Dialog. Spotlight WILL search through the PDF file to locate the particular info you need.

[ Reply to This | # ]
An AppleScript to export all Stickies as text
Authored by: dave1212 on Thu, Feb 9 2006 at 12:33AM PST
only does the first bunch of notes, doesn't do them all. I end up with 10 pages of notes and 30 blank pages.

[ Reply to This | # ]