I originally wrote this internally for Aiven ’s Developer Relations team, but figured it would be as cool and mind blowing to the rest of my technical writer and DevRel friends as it was to me. Mega hat tip by the way!
There are lots of instances where capturing a screenshot with the full window border is preferable. They look clean and professional in presentations, for example, especially when the screenshot is on a white background. It also allows for nice “flipping” through slides if you have screenshots in the same place on multiple slides - it just looks cleaner and more professional when things don’t shift about by 1px back and forth.
This article goes through how to create ✨ super beautiful UI window’ed screenshots ✨ on a MacBook Pro.
In this case, by professional we mean:
The hardest criteria to meet is #1 - taking screenshots of a consistent size. OSX’s built in screenshot tools can take care of the other criteria.
Previously the best way to do this was to use the browser’s Inspect/Dev tooling and use the mobile resolution previews. But, with the addition of the Shortcuts app on Mac OSX, we now have If-This-Then-That logic at our disposal!
First, open the Shortcuts app from the Finder:
Next, click the + icon to add a new shortcut:
Use the Search bar on the right and look for Find Windows. Drag this into the area on the left.
Configure Find windows to look for All windows where Window Index is 1. using the Add Filter button.
Warning: Later, we’ll configure this Shortcut to run from the menu bar if you want. If that’s the case, you’ll want to look for Window Index = 0. I found this out after taking the GIF that follows, sorry!
Next, use the Search bar to look for Resize Windows. Drag this into the left and configure it to Resize windows to Ask each time.
Name the Shortcut something meaningful, like Resize Window for Screenshot.
Here’s a quick animation of what how to do this, as Shortcuts is very visual:
I’m glaringly aware that this isn’t the same aspect ratio as everything else in this article. It’s 10:30pm and I can’t convince my tools to compress a re-recorded at aspect ratio version to a reasonable size for web. Maybe tomorrow?
Optionally, make your shortcut available by pinning it to your Menu bar, setting it as a Quick action, or assigning a Keyboard shortcut keep in mind that if you do this, you need to set the Window rule to look for Index = 0!:
And that’s it!
Whenever you want to screenshot something, bring its window to the front, select it from either the Shortcuts app or the menu bar, then just use OSX’s screenshot functionality!
Mac OSX’s shadow is kind of huge and it comes along for free if you use Cmd+Shift+4 or Cmd+Shift+5 and select a specific window.
You can suppress this by using the Cmd+Shift+5 option, selecting a window, and holding the Option key when you take a screenshot. Pressing Enter can also trigger the screenshot if you’re feeling like you’ve got too many fingers engaged.
This doesn’t work when using Cmd+Shift+4.
You’ll want to use Cmd+Shift+5’s square lasso tool to select a specific area of the screen. I’d recommend resizing your window first for consistency.
The square bounding box, once set, persists until it’s altered again. If you’re screencapping multiple applications (the Terminal and a browser, i.e.) I’d recommend resizing both then dragging them into the bounding box area as needed, as moving the bounding box can sometimes introduce unwanted changes.
I used Cmd+Shift+5’s screen record tool to make the recording.
In its Options menu, you can select Show mouse pointer and Show mouse clicks before recording.
Then, I used an online tool to convert this to a GIF. I’d like to make another OSX Shortcut to do this in future, but creating one that can resize, compress, and otherwise optimize a GIF to my specs is a little complicated.
Unless you have a good reason not to, using common desktop or mobile dimensions for screenshots is usually best. Go smaller than you think:
When you’re creating screenshots, always remember to check for the following:
Some things you inevitably need to edit out after the fact, but most of these can be dismissed or removed prior to screencapping.
Have fun!