Showing 20 posts tagged applescript
Clipping from nvALT into OmniFocus
I have started to use nvALT again to take my notes during meetings and calls. Yesterday was a rather epic call day with 8 out of the 10 hours I worked spent on the phone. Consequently many notes were taken and lots of actions had to be clipped from nvALT to OmniFocus for processing and tracking.
When I finished hitting my OmniFocus clipping hotkey (⌘⌥^-C) about twenty times, I was shocked looking at my OmniFocus inbox with each clipped actions looking like this:

The actions I wanted to be captured ended up in the note field and the task itself just reference nvALT. Now this is not a hugh problem if you have just one or two things clipped, but it is if you have twenty or more.
Reaching out to my fellow tweeps for an script-based solution brought Ben Waldie, AppleScript guru by profession, to rescue me.
His neat little script does nothing else than swapping task title and note around for all tasks currently selected.
tell application "OmniFocus"
tell content of front window
set theTasks to value of every selected tree
repeat with aTask in theTasks
tell aTask
set theName to name
set theNote to note
set name to theNote
set note to theName
end tell
end repeat
end tell
end tell
Be aware that the script is rather minimal in nature and has no error handling. Make sure you use it with tasks selected that do feature a title and a note.
