Getting the link for an Apple Mail Message

This post by David Sparks aka MacSparky from a couple of days ago provides an Apple Script that he uses to get links to Apple Mail messages anywhere using TextExpander.

It’s easy to understand and there’s also a video that shows you how and why you would want to use it.

After reading the post and watching the video I decided that this would be something that I would use. Only one problem. I don’t use TextExpander. So after thinking about it for a few minutes, I figured I could accomplish the same thing using a Keyboard Maestro macro.

Here’s the macro:

This Keyboard Maestro macro works the same way as David’s TextExpander snippet. Now type “;elink” in any app that can take a URL and you create a link to the currently selected email message. I’m primarily using it in Things 3 and Bear.

Here’s the AppleScript if you want to copy and paste it:

(*
  Returns a link to the first selected Apple Mail message
*)
tell application "Mail"
  set _msgs to selected messages of message viewer 0
  if (_msgs is not equal to missing value) then
    set _msg to first item of _msgs
    set _msgID to do shell script "/usr/bin/python -c 'import sys, urllib; print urllib.quote(sys.argv[1])' " & (message id of _msg)

    return "message://%3C" & (_msgID) & "%3E"
  end if
end tell

 

How to View Folder Sizes on Mac Using Finder

I don’t often need to know the size of a folder but when I did I didn’t know how to find the size until recently.

When you use Finder’s List view to work with files on your Mac, the Size column tells you the size of each file, but when it comes to folders in the list, Finder just shows a couple of dashes instead.

Here’s how to view the size of a folder. Click File in the menu bar and hold the Option key, and Get Info will turn into Show Inspector. Unlike a Get Info panel, the Inspector panel is dynamically updated and will always display information for the active Finder window’s currently selected file or folder – including, of course, its size.

iOS 12 keyboard trackpad on iPhone or iPad

Having a trackpad on my iPhone and iPad comes in really handy for moving the cursor around in a document versus trying to tap the cursor where I want it.

If you’re not using the trackpad feature you should give it a try. Here’s how:

If your device has 3D Touch – which includes most iPhones since 2015’s iPhone 6s – you can hard press the keyboard whenever it’s present onscreen, turning it into a makeshift trackpad. If you have an iPhone SE or iPhone XR with iOS 12 -both of which lack 3D Touch -you can now long-press the spacebar to invoke the same trackpad.

Via appleinsider

How to close other tabs in Safari on Mac

Sometimes I have several tabs open in Safari when I’m searching for something to write about. When I’ve settled on something I often want to close all the other open tabs. Rather than closing each tab individually, I do the following:

  1. Right-click (or Control+Click) on the tab I want to keep open
  2. Choose “Close Other Tabs” to instantly close all the other open tabs

File Quick View with Alfred

If you have been following my blog for a while you know that I’m a big fan of Alfred. I use it all the time for finding and opening files. One thing I didn’t know though is that when searching files you can do a Quick View. In the past, I’ve always opened the file in the appropriate app to view it. With Alfred Quick View I can press ⇧ or ⌘Y to bring up a quick view of the file. This is a nice time saver.

Credit to Lee Garrett: Quick View with Alfred

 

Switching between multiple open windows in the same application

Switching between multiple open windows in the same application has always been a pain point for me. Go to Window in the application Menu Bar and then select the window I want from the list of open windows. Or right click on the application in the Dock and select the window from list of open windows.

I just learned that there’s an easier way. Use the keyboard shortcut ⌘ + Tilde to quickly switch between open windows in the same application. So, for example, there are times when I have several Safari windows open at the same time. I can quickly sort through them with this keyboard shortcut.

Next time you have several windows open in the same application give it a try.

My Mac Menu Bar – June 2018

Visible

1Password: For my passwords
Copied: For syncing clipboards.
Fantastical: For quick access to my calendars.
Screenfloat: For taking or accessing screenshots.
TunnelBear VPN: For private browsing.
Bartender 3: For hiding the menu bar items that I don’t want to see.

Hidden

Alfred: For efficiency and productivity.
Keyboard Maestro: For efficiency and productivity.
PopClip: For managing selected text.
Yoink: For drag and drop.
Oversight: For alerting me when my internal mic or webcam is being accessed.
Time Machine: For backup to an external USB drive.