A new version of my favourite text utility is now available.
Built-in Dropbox Synchronization
Now you can use Dropbox or MobileMe to keep your snippets synched between your Macs.
You had me at Dropbox.
When a client sends in an completed ad to the Fusion mailbox, they include the accompanying text that sits beside the ad graphic. Because we allow a max of 80 characters, care has to be taken to ensure that there is no more than 80 characters included. It sounds obvious, but from time to time, a customer forgets the limit.
And so there are many times when I’ve eyeballed the text and thought, “That looks a little large.” At this point, I have no desire to squint at the screen and count characters. Normally I would copy and paste the text into another app, such as MarsEdit or WriteRoom. Apps such as these have the ability to give you a character count, which is great when you are writing and already using the app.
But it was enough of an inconvenience to me to have to open one of these apps to paste the text into. When I’m in the middle of an email session, those apps are never open. What I needed was a way to simply select any block of text, hit a key combo, and get a message with the text stats I desired.
Ah, the joy of being a Mac user …
System Services
Applescript is definitely a little weird and quirky, but it’s also flexible. A quick search on the Net found the following script by Rob Griffiths:
set myWords to count words of (the clipboard)
set myParas to count paragraphs of (the clipboard)
display dialog “Characters: ” & myCount & ”
Words: ” & myWords & ”
Paragraphs: ” & myParas
This would be best to create as a system wide service, accessible via a keyboard shortcut. I created one right away in Automator and it worked okay. But I first had to copy the text to the clipboard since the script accesses the text from there. Typing CMD + C is not a big deal, but it still felt awkward and unneccesary.
To get around this, I had to add the following Apple code to Automator:
tell application “System Events” to keystroke “c” using command down
return input
end run
This would not work within the same script that calculates the text statistics — it had to be added separately. Here’s how the service looks in its entirety.

And this is the result:

This is why I love being a Mac user. Solving your own problems is often possible, and usually fun.
I’ve heard nothing but good about this app and I can understand why. It just works, and the careful thought in the design comes through in your usage.
One example that caught my attention was how the app handles previously copied items. I frequently access the Clipboard in LaunchBar to access items that I had previously copied:

But do I want that same item copied to Pastebot multiple times? No. But the amazing devs at Tapbots anticipated that. Here’s an item that was previously copied a few entries down the list:

If I copy that same item on my Mac (or access it via my Clipboard history), rather than copy it again, Pastebot magically transfers the previous entry to the top of the list:

As always, when it comes to software, it’s the little things that win your heart.