News for hackers. Stuff that matters.
Re:iCloud Terminal Notepad by basdp on Wednesday January 21, 2015 @10:07AM (#8923356)
Is this also possible for the regular notes app on iOS/OS X? It does sync with iCloud but I am not able to check if it's available in iCloud Drive.
Re:iCloud Terminal Notepad by dalbin on Wednesday January 21, 2015 @10:36AM (#8923497)
This works :

#!/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>'; }

Re:iCloud Terminal Notepad by kingnight on Wednesday January 21, 2015 @12:20PM (#8924118)
This is really great!

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).

Re:iCloud Terminal Notepad by gargarplex on Wednesday January 21, 2015 @12:14PM (#8924062)
For anyone interested in learning more about JavaScript for OSX automation

http://developer.telerik.com/featured/javascript-os-x-automa...

Re:iCloud Terminal Notepad by _jsn on Wednesday January 21, 2015 @12:24PM (#8924155)
iCloud Drive or CloudKit-esque storage would be nice, but the regular Notes app uses IMAP for storage, for what I imagine are "legacy reasons". (The Notes feature was originally built in to Mail.app and used IMAP notes. Yes, IMAP has a notes feature).
Re:iCloud Terminal Notepad by gothep on Wednesday January 21, 2015 @10:19AM (#8923421)
It could be, there is a directory called com\~apple\~Notes in the Mobile Documents folder that looks promising!