The iA Writer method in this article feels a little fragile to me since it relies on that path. I guess it isn't likely to change in a hurry though.
I have a terminal command called "log" which takes a string as an argument. It basically takes this string and writes it into my log file, prepended by the current date and time. This log file is in my dropbox folder. Typing "log" with no arguments will open up the log file in my editor.
I have this set up with an Alfred workflow which works exactly the same way. I find it very useful for keeping track of what I am working on, what problems I was meant to be tackling, quick calculations I would like to keep a record of, etc
EDIT: reading the article more thoroughly, my solution is basically identical.
I also set up /usr/local/bin/notes, with the following: # !/bin/bash cat “path to your file”
That way, you can also quickly read all your notes from that file on the command line
#!/usr/bin/env osascript -l JavaScript
function run(argv) { var note = Application('Notes').notes['Terminal Note']; note.body = note.body() + new Date() + ' : <pre>'+argv.join(' ')+'</pre>'; }
A couple notes for anyone trying it: 'Notes' has to be running & there has to be an existing note with the first line 'Terminal Note'. Both could be handled if anyone wanted to make it more robust.
This will be great for shooting specific tidbits of info from my work computer to my iPhone (which aren't connected via iCloud).
http://developer.telerik.com/featured/javascript-os-x-automa...