styleStealer: add your web design to Marked with a click

I use Marked 2 for preview and proofing my writing. Yesterday Brett Terpstra, the developer of Marked, in a blog post offered a way to add my blogs style sheet to Marked. Now my preview looks almost exactly like it does on my blog. This is cool! Thank you, Brett.

Brett Terpstra, writing on his blog

I present styleStealer, a bookmarklet to make grabbing a site’s design and applying it to your Markdown preview in Marked a simple process.

Use Alfred to launch Safari URL in Chrome

Safari is my main browser. From time to time I come across a website that doesn’t play well with Safari. When this happens I open the site in Chrome. Thanks to Alfred I have a very simple way to automate this. Whenever I come across a site that isn’t working well in Safari I hit ⌥⌘G and it takes the current Safari URL and loads it in Chrome.

Download the Alfred workflow.

You can also do the same thing using Keyboard Maestro if you’re a KM user. I wrote about how to do it here.

Tip – How to re-open recently closed tabs in Safari for Mac the easy way

Have you ever accidentally closed a tab in Safari and wanted to get it back? I have. This usually happens when I’m doing research and have several tabs open at the same time. Sometimes I close one thinking I’m done with it and then realize I need it again. Other times I close one by accident.

Safari’s ⌘ + Z to the rescue. From Safari on the Mac, I can simply hit ⌘ + Z and the last closed browser tab or window will reopen. If I hit the ⌘ + Z keystroke again I can open the next most recently closed browser tab or window. If I do it 20 times, the 20 most recently closed browser tabs and windows will reopen.

I can also do it this way. From any active Safari browser window on the Mac, click and hold on the “+” plus button in the Safari tab bar and then select the tab to reopen from the drop down list of recently closed tabs.

Launch your favorite Mac apps with keyboard shortcuts using Alfred

The other day I wrote about launching Mac apps with keyboard shortcuts using Keyboard Maestro. If you’re an Alfred user you can do the same thing with Alfred an workflow.

Here’s my workflow to launch Safari with the hotkey ⌥S. You’ll need the PowerPack to do this.

Step one is to create a new workflow.

Step two is to setup a trigger for the hotkey.

Step three is to add the Launch Apps action and drag in the application(s) you want to open. The easiest way to do this is to search for the application or file in Alfred and drag it directly from Alfred’s results into the action box.

Optionally, check the “Toggle visibility for apps” to tell Alfred to show/hide the app. Connect the action to the hotkey to quickly launch the app.

I prefer launching apps with Alfred for one main reason. I like the way the show/hide app functionality works in Alfred better than the way it does in Keyboard Maestro.

How to view your calendar while creating an event or reminder in Fantastical

I’ve been using Fantastical for a long time. Occasionally when creating a new event or reminder I need to reference my calendar. This involved saving the event or reminder > checking my calendar > getting the info I needed > and then reopening the event or reminder.

I often wondered if there might be an easier way to do this and there is.

I ran across this trick the other day while scanning through The Sweet Setup Quick Tip archive. Here’s how you do it. When you are in the new event or reminder window, tap and drag down the title in the red bar. This will minimize it to the bottom of the screen. To get back to the event, tap on the event window in the bottom center. You can actually have multiple event drafts at the same time. Double tapping the minimized events will launch them in a window where you can tap on the one you want to work with.

Tip – Caffeinate by Dr. Drang

Since I started following Dr. Drang’s blog I have learned some great Mac tricks. Some I use everyday.

Here’s a new one. Keep your screen awake without having to install one of the popular apps like Caffeine or Amphetamine. Dr. Drang explains how to do this with a terminal command. No new app needed.

Dr. Drang, writing on his personal blog

But you know me. Why would I use a nice polished program with a GUI when I can run a Terminal command? And even though I own Bartender, I’d still rather keep my menubar apps to a minimum.

So I use the caffeinate command, whose name, I believe, was lifted from Caffeine in what must be Apple’s lamest piece of Sherlocking ever. It’s a sort of limited version of pmset, the older, more powerful, and considerably more complicated power management utility.

Caffeinate has only a few options and the ones I use are -d, which keeps the display from sleeping, and -t which sets a timer to stop caffeinate in case I forget to. The command I used tonight was

caffeinate -dt 6000

which kept the display awake for 100 minutes (6000 seconds), enough for the 90-minute class plus a cushion.

I highly recommend Dr. Drang’s blog.

Open Safari URL in Chrome – Keyboard Maestro

Safari is my main browser. From time to time I come across a website that doesn’t play well with Safari. When this happens I open the site in Chrome. To do this I have to copy the URL from Safari -> launch Chrome -> and paste the URL into Chrome. To many steps. To simplify this, I have a Keyboard Maestro macro to automate the steps with the hotkey ⌃⌘G.

Here’s how to create the macro:

Launch your favorite Mac apps with keyboard shortcuts | Keyboard Maestro

By using keyboard shortcuts to launch apps on my Mac, I can cut back on mouse or trackpad usage to perform actions faster and more efficiently. In fact, the Dock on both my Macs is hidden. I launch all my most popular apps using keyboard shortcuts.

I’ve created my keyboard shortcuts using Keyboard Maestro. Within Keyboard Maestro I have a Group called Launch Apps. All my app launcher macros live there. Here’s how to create the app launcher macro:

Repeat this for all the apps that you would like to launch using a keyboard shortcut.

If you create the macro the way I have, the hotkey will also show/hide the app once launched.

Related Posts:
Keyboard Maestro macro for plain-text pasting anywhere
Keyboard Maestro Macro – Getting URLs from Safari