Feb 02
2012
Here’s a quick, simple AppleScript to help you hook Notational Velocity/nvALT into Address Book. I sometimes want to attach a note or list of links to an entry in my address book, but I don’t like using the notes field. I tend to keep all of my notes1 in nvALT, and I prefer not to scatter them too far. All I needed was a way to quickly create and link an nvALT note to each address…
As of recent versions, Notational Velocity and nvALT have a URL handler for nv:// (or nvalt://). Using the /find/ parameter allows you to initiate a search in NV from a link, e.g. nv://find/abnote%3AJohnny Appleseed. If you use a unique prefix and full name, you can pinpoint a single note without having to create a file or locate the note’s ID. The first time you click the link, it will open a search in NV, and pressing Return will create the note and begin editing. Once the note is there, it will locate it instantly the next time you click the link.
I’m using the prefix “abnote:” on my notes. This AppleScript will create the URL entry automatically from the selected entries’ first and last names, and you can edit the prefix in the script to be anything you like. Just save it as “Add NV Note.scpt” in ~/Library/Scripts/Applications/Address Book and it will show up in your script menu2 when you’re in Address Book. You can run it on a bunch of entries (it’s not optimized to run on an entire large address book, though), or one at a time as you need it.
I wrote this on Lion. I honestly have no idea if it works on anything earlier. It might3.
The script
tell application "Address Book" set thePeople to the selection repeat with thisPerson in thePeople set theName to name of thisPerson as string make new url at end of urls of thisPerson with properties {label:"NV Note", value:"nv://find/abnote%3A" & theName} end repeat save end tell
Notes, for me, are different from log entries. I actually like keeping those separate most of the time. ↩
It might not. ↩
Jan 31
2012
I’ve updated ScrivWatcher (a utility for previewing compiled Scrivener documents live in Marked) to 1.5. This version has better error handling and a progress bar showing compile progress. It’s still a droplet, you just drop onto the progress bar window instead of a drop pad, or drop a ‘.scriv’ file directly onto the icon.
For the command line savvy, the gist has been updated as well. Run it with “-h” to see all of the options. There’s even a progress bar in the terminal (default setting).
The big news, though, is that I have this working within Marked. The next version will be able to accept dropped Scrivener projects and provide a compiled preview that updates with changes from Scrivener. No external application needed! That release should be ready relatively soon, I’m putting out a beta for testing this week.
For now, here’s the latest (and probably last) version of ScrivWatcher:
ScrivWatcher — Watch a Scrivener project and preview it in Marked by dragging the .scriv file to this droplet. More Info
Jan 26
2012
Dear Macworld Diary,
My Tech Talk this morning, “40 Tips in 40 Minutes” with David Sparks and Merlin Mann went really well, I think. I had fun doing it, anyway. I put up some show notes at the soon-to-change 40tips.com, if you’re interested. I’m looking forward to seeing David and Merlin with Rob Corddry tomorrow. If you’re around Macworld, you should probably get there early!
Lunch with Shawn Blanc, Stephen Hackett, Brett Kelly, Ben Brooks, and Thomas Brand was awesome1. Great to meet so many cool people all at once.
I just got back from a clandestine meeting at the Samovar Tea Lounge (I love that place). I had tea. We had laughs. I was shown software. It was amazing. I will pimp the hell out of it when it comes out in the next couple of months. Until then, all I can say is just prepare to have core elements of your workflow change drastically, for the better. That’s the second game-changer I’ve been shown lately but can’t disclose yet. I will go insane if this keeps happening.
Also, if you are in San Francisco right now, swing down to Jillian’s tonight before 11pm and catch up with the TUAW crew. It’s going to be a good time. Low-key, good conversation, and probably drink tickets.
Sorry, total nerd namedrop linkfest. Really fun bunch, though. ↩
ScrivWatcher droplet, an easier live Scrivener preview
Jan 26, 2012
I got the droplet for ScrivWatcher working, so you don’t need to run the script from the command line if you don’t want to. I made some further updates to the script, and the version on GitHub will stay in sync with this application as it develops, so you can choose to go either way.
Just unzip the download below and put the app in your Applications folder (or wherever). Then drop a Scrivener project on it and it will open the compiled file as a Marked…
Preview a full Scrivener document in Marked, live
Jan 25, 2012
BooneJS tweeted me a script yesterday that takes my original “scrivwatch” script and makes it handle full Scrivener documents. It scrapes the XML file to get the order of RTF files in the document, then used the original method to convert and concatenate all of it into a plain text file. If you write in Scrivener using Markdown, you get a file that Marked can preview as a rendered document with any theme. It uses the original datestamp polling to watch for…
A Service for writing MultiMarkdown footnotes inline
Jan 24, 2012
This post should have been titled “What happens to my mornings.”
I get a lot of one-off requests for scripts and tips on how to handle tasks specific to people’s workflow or writing style. I generally keep myself pretty busy, so I usually reply with a quick idea or thought and leave it up to them to run with it. David Coleman emailed me this morning, though, with a request that struck me as an interesting enough idea to whip up a script before work.
iOS-inspired popup box CSS
Jan 20, 2012
I tweeted the other day that I had made some CSS buttons in a sleep-deprived haze that I really dug. The only reason I even remembered they were there was a command-line-generated entry in Day One that linked to the file. This is why I log.
Anyway, I polished them up a little and threw up a GitHub page for them. If you’re a web designer and you’re looking for an iOS-like popup style, they might be of use to you. You can see the demo, the markup…
System Service: Clip to Day One
Jan 19, 2012
I’m enjoying logging with Day One right now, and getting geeky with it. To that end, I put this project together during the few breaks I’ve had over the last couple of days leading up to the new Engadget live blog launch today. The result is a practical proof of concept in the form of a System Service for clipping any text to Day One. I figured that this could actually be really handy for more people than just me, so here it is.
Logging with Day One, geek style
Jan 16, 2012
I have long kept a journal–more precisely, a log–using VoodooPad with the Scratchpad scripts by Ian Beck. It’s been a great system, but after years of usage it’s started to become a bit cumbersome. VoodooPad can handle the load, but running the custom scripts is inconvenient on a document with thousands of pages. In the interest of trying new things (and fiddling away some time this evening), I decided to try switching the system over to Day One.
Scripting Readability and Markdownify for clipping web pages
Jan 04, 2012
I wanted to share a handy tool that I realized I use daily but rarely talk about. I call it Read2Text, but it’s really just a Frankenstein script which combines Python Readability (license) with html2text (license). The combination allows you to grab web pages, process them with a port of Arc90’s Readability and convert the HTML to Markdown, ready for pasting or piping to a text file.
Some of my favorite Mac apps in 2011
Dec 31, 2011
I’ve compiled a list of some of my favorite apps from 2011. I wrote a TextMate command to link all of these (60+ links in four minutes!), so if you spot any misfire links that I missed, let me know in the comments. This isn’t an all-inclusive list (despite its length), but it’s a good chance to highlight some gems that may have passed under the radar of the big sites.
