Menu Close

Tag: automation (page 4 of 4)

Link Post Workflow with Ulysses and Workflow on iOS

A link post is a type of post common on many blogs, including here at 40Tech, where the post links to a story on another site. The purpose of a link post is to say to the reader, “Hey, here’s a good story.” Often the post adds a few words of commentary. The post on sharing your WiFi credentials with a QR code was an example of a link post.

I’ve recently come up with an easy way create a link post on 40Tech using Ulysses and the Workflow app on iOS. I copy the author’s name to the clipboard, select the text I want to quote, and run the workflow via Safari’s share sheet. The workflow prompts me for the name of the other site, before opening Ulysses with my post almost all ready to go. All that’s left for me to do in Ulysses is add some comments, pick my tags and categories, and publish the post.

Behind the Scenes

Here’s what happens, mostly behind the scenes, in the Workflow app:

  1. After Workflow asks me to type the name of the publication, it sets it as a variable;
  2. Workflow gets the clipboard contents (which should be the author’s name, if you copied the name to your clipboard as I explained above), changes it to title case in the event that it isn’t properly capitalized, and sets it as a variable;
  3. Workflow gets the URL from the Safari web page, as well as the text I selected on the page;
  4. Workflow puts together the pieces and creates the text for the post; and
  5. Workflow opens Ulysses with the text as a new sheet.

In the first part of step 4, above, Workflow creates a header tag (#) followed by the name of the story as a clickable link. That’s because Ulysses will take the URL that follows a header tag in the first line and add it as a “linked_list_url” custom field on my WordPress blog. That’s what makes the title of my link posts clickable, and sends you to the other site when you click the title.

Here is a screenshot of the entire workflow:

Here is a link to download the complete workflow in the Workflow directory. I realize the final two steps could probably be redone using a “New Ulysses Sheet” action, but this is working so I’m not messing with it. If you are going to use the workflow yourself, you’ll need to change the path at the end of the second-to-last step to point to a group that already exists in your Ulysses setup (mine points to 40Tech > Linked).

My link post workflow on iOS is now almost as efficient as it is on Mac. More on my Mac workflow soon.


How to Make the MacBook Pro’s Touch Bar Useful

All of the good ones are taken.

That’s how I feel when it comes to keyboard shortcuts on my Mac. Between Keyboard Maestro and app shortcuts in System Preferences, I have used up all of the easy to remember shortcuts. Enter the MacBook Pro and the Touch Bar. When used with BetterTouchTool and Keyboard Maestro, some commonly used shortcuts are just a tap away.

BetterTouchTool allows you to configure the TouchBar on a per app basis, and also globally. You can configure TouchBar buttons to execute certain system commands, and also to type keystrokes. That last part – typing keystrokes – is huge. If you trigger a Keyboard Maestro macro with a keystroke combination, you can map that keystroke combination to a Touch Bar button via BetterTouchTool.

For example, check out my “End Call” Touch Bar Action in the screenshot below:

You can see I’ve mapped my “End Call” Touch Bar Action to the Option-Command-H keyboard shortcut. Over in Keyboard Maestro I’ve set up a macro that is triggered by that same keyboard command. The macro hangs up the VOIP software phone on my Mac, so I don’t have to hunt down the VOIP application to end a call.1 With the combination of the BetterTouchTool Action and the Keyboard Maestro macro, I press a nice red phone button on the Touch Bar, and the call ends. I have a similar Touch Bar button set up for answering calls.

In future posts, I’ll break down some more Touch Bar layouts to show what I’ve done with the Touch Bar, such as adding Markdown bold and italics buttons for use in my firm’s case management system, and more.

BetterTouchTool currently is sold under a “Pay What You Want” model, with a minimum price of $4.99 and a suggested price of $8.99. It’s sold directly from the developer’s website.

BetterTouchTool

  1. Even on my iMac, I typically keep apps spread between several Spaces. I didn’t want to have to hunt down the VOIP app, or tab between open apps, to go to the app and end a call.

Put a DEVONthink Sorter in the Menu Bar With Dropzone

One of the tools included with all Mac versions of DEVONthink is the Sorter. The DEVONthink Sorter is an optional tool that hangs out at the side of your screen. You can drag files to it, and send them off to preconfigured locations within DEVONthink. I liked the functionality of the Sorter, but didn’t like it always hanging out at the edge of my screen, so I came up with an alternative that resides in my Mac’s menu bar.

Read more


Use Your Wemo with HomeKit

wemo-and-homekit

In my last post I discussed how I was able to get my Liftmaster garage door opener working with HomeKit, even though it wasn’t officially HomeKit compatible. I used a HomeKit bridge called Homebridge, running on my Mac, to accomplish this (Linux would work, too). Setting up Homebridge and the first plugin (Liftmaster) was the hard part. From there, getting the Wemo plugin set up and installed was easy.

Read more


Use HomeKit With Your Chamberlain Liftmaster MyQ Garage Door

If you have a MyQ-enabled garage door opener, and you want to hook your door into HomeKit, take a look at Homebridge. Homebridge is a NodeJS server that runs on your Mac, or on a Linux machine such as a Raspberry Pi. Homebridge acts as a HomeKit bridge and allows you to use certain non-HomeKit devices with HomeKit. That might sound like a mouthful, and it certainly isn’t trivial to set up, but it isn’t as difficult as it might seem.

Read more