This Week's Sponsor:

Kolide

Ensures that if a device isn’t secure it can’t access your apps.  It’s Device Trust for Okta.


Logging with Day One and Alfred

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.

The three Day One entries above were created (and starred) using Alfred.

Before you create a new Applescript extension in Alfred, don’t forget to download Brett’s script and make it executable in your desired location, and create a symlink for Day One’s CLI (Show Package Contents on Day One, then navigate to Contents/MacOS/dayone - that’s the CLI you have to symlink) in your usr/local/bin/ directory.

You can check out Brett’s post here, and catch up on our coverage for the latest version of the app, Day One 1.5 (Mac and iOS).

Unlock More with Club MacStories

Founded in 2015, Club MacStories has delivered exclusive content every week for over six years.

In that time, members have enjoyed nearly 400 weekly and monthly newsletters packed with more of your favorite MacStories writing as well as Club-only podcasts, eBooks, discounts on apps, icons, and services. Join today, and you’ll get everything new that we publish every week, plus access to our entire archive of back issues and downloadable perks.

The Club expanded in 2021 with Club MacStories+ and Club Premier. Club MacStories+ members enjoy even more exclusive stories, a vibrant Discord community, a rotating roster of app discounts, and more. And, with Club Premier, you get everything we offer at every Club level plus an extended, ad-free version of our podcast AppStories that is delivered early each week in high-bitrate audio.

Choose the Club plan that’s right for you:

  • Club MacStories: Weekly and monthly newsletters via email and the web that are brimming with app collections, tips, automation workflows, longform writing, a Club-only podcast, periodic giveaways, and more;
  • Club MacStories+: Everything that Club MacStories offers, plus exclusive content like Federico’s Automation Academy and John’s Macintosh Desktop Experience, a powerful web app for searching and exploring over 6 years of content and creating custom RSS feeds of Club content, an active Discord community, and a rotating collection of discounts, and more;
  • Club Premier: Everything in from our other plans and AppStories+, an extended version of our flagship podcast that’s delivered early, ad-free, and in high-bitrate audio.