Logging with Day One and Alfred
january 2012 by Aetles
Yesterday, Brett Terpstra posted a fantastic little script to leverage Day One’s built-in CLI (command line interface, more information available here) to create new journal entries from the Terminal or an app launcher. Brett has posted instructions on how to use Launchbar with the script, or skip the app launcher part altogether and go with the Mac’s Terminal instead:
Day One already has a quick entry palette in the menubar. It also has a command line interface (/usr/local/bin/dayone)1 which provides some geeky options (try dayone in Terminal) and the flexibility needed to replace my current logging system. You can create entries quickly with either method, but I wanted just a little bit more out of it. I built a quick script which allows a basic syntax for starring entries and defining dates (using natural language) inline in the entry itself. It can be used from the command line, from LaunchBar (or similar) and can be incorporated into just about any scriptable workflow.
I wanted to make the script work with Alfred, my app launcher and navigation tool of choice, and it turns out the effort to modify Brett’s script is equal to zero. I simply replaced “on handle_string(message)” with “on alfred_script(q)” and ”end handle_string” with ”end alfred_script” to make it work in Alfred. Obviously, you’ll need to fill in the path to your script after you’ve followed Brett’s instructions.
alfred
mac
script
dayone
Day One already has a quick entry palette in the menubar. It also has a command line interface (/usr/local/bin/dayone)1 which provides some geeky options (try dayone in Terminal) and the flexibility needed to replace my current logging system. You can create entries quickly with either method, but I wanted just a little bit more out of it. I built a quick script which allows a basic syntax for starring entries and defining dates (using natural language) inline in the entry itself. It can be used from the command line, from LaunchBar (or similar) and can be incorporated into just about any scriptable workflow.
I wanted to make the script work with Alfred, my app launcher and navigation tool of choice, and it turns out the effort to modify Brett’s script is equal to zero. I simply replaced “on handle_string(message)” with “on alfred_script(q)” and ”end handle_string” with ”end alfred_script” to make it work in Alfred. Obviously, you’ll need to fill in the path to your script after you’ve followed Brett’s instructions.
january 2012 by Aetles
Use AppleScript to open current Safari URL in Google Chrome
march 2011 by Aetles
What I needed was a way to open the current Safari page to Google Chrome. After my own attempts at cobbling together an AppleScript solution failed, John Welch was kind enough to provide the the answer via Twitter:
applescript
chrome
flash
safari
script
march 2011 by Aetles
Veer: Products: Type: Ministry Script
january 2006 by Aetles
Otroligt vackert scripttypsnitt: Ministry Script hos Veer.
typsnitt
teckensnitt
font
script
skrivstil
Typografi
january 2006 by Aetles
ucomics Atom feeds for NetNewsWire
december 2004 by Aetles
En utveckling av ett tips från macosxhints där en pythonscript hade postats för att göra RSS för NetNewsWire av serier från ucomics.com. Nu som Perlscript och med Atom-feed.
netnewswire
ucomics
serier
perl
script
atom
Mac
december 2004 by Aetles
See comic subscriptions in NetNewsWire 2.0
december 2004 by Aetles
Ett python-script som gör att man kan läsa serier i NetNewsWire.
netnewswire
comics
rss
script
python
macosxhints
Mac
december 2004 by Aetles
AppleScript - The Book
november 2004 by Aetles
En bok om AppleScript som påstås vara *the* AppleScript book.
apple
script
bok
applescript
Mac
november 2004 by Aetles
AppleScript: The Definitive Guide
november 2004 by Aetles
En bok om Apple Script som ska vara bra enligt Michael Tsai.
apple
script
bok
Mac
november 2004 by Aetles
Copy this bookmark: