Crop-record Screen Instantly With Aspect Ratio 1:2,07

Crop-record Screen Instantly (2 macros), Keyboard Maestro 10.2

The idea for this macro originated from the need to conceal sensitive parts of information when sharing screen recordings with the world in a mundane fashion, contacting support, or posting to online discussion boards. These parts may include the user name in the system menu bar and opened documents (projecting from the Dock stacks beyond the lower third), the contents and titles of which aren't meant for anybody other than the owner. These are the most frequent scenarios.

Typically, you'd have to perform the following set to achieve this:

  1. Locate QuickTime Player or its equivalent.
  2. Launch it.
  3. Enter the screen recording mode.
  4. Drag handles to select the recording area.
  5. Start the recording session.
  6. To end the session, if your menu bar is cluttered with application icons, you're left to endure the annoyingly boring routine of closing every application to uncover the "stop" menu icon or showing the Dock, ploughing the row of app icons with the cursor until it reaches QuickTime Player, right-clicking it and choosing "Stop recording".
  7. Save or export.

Another solution involves blurring the sensitive areas in a video editor, which adds overheads to a workflow complex enough as it is for such a simple goal. It's unacceptable.

With Keyboard Maestro these seven actions narrow down to two: press a hotkey and select an export format (or cancel without exporting).

I designed this macro with the highest simplicity in mind. I didn't conceive it to replace or complement specialized editing drills. It's fire-and-forget.

It offers no options to select cropping dimensions. It uses just one preset as the only purpose is on-the-spot performance. The resulting rectangle is a pseudo-letterbox.

The macro is versatile enough to find many uses, not the least of those being the ability to overlay action displayed in multimedia online and offline players to size up the pan-and-scan finish (a post-production use case). Possibilities are inexhaustible, so enjoy the high aspect ratio of 1:2,07!

The macro consists of 2 macros and a zipped script file. The macros are:

1.	The master macro "Record Main Area of Screen".
2.	The auxiliary macro "Make Screen Area Selection".

The script file is the AppleScript script Record Screen.scptd. I enclosed the two macros in a macro group named "Crop-Record Screen Instantly" for convenience.

Installation:

  1. Import the macros as a macro group

  2. Unzip the archive and put the "Record Screen.scptd" script file in ~/Documents.

How To Use?
By pressing the hotkey โ‡งโŒฅโŒ˜L

Since it crops to the percentage of the original resolution I felt would be suitable based on the resolution of my Mac (1440 x 900) and the velocity of GUI operations allowed by Intel HD4000, nVidia 750M, and macOS "Mojave", I'd be interested in feedback about how that translates adjusted for the dimensions of your screen, your hardware and more up-to-date macOS 11+ graphics drivers.

I recommend you to read the notes I added as comments to the macros and the description of the script bundle you access by opening it with "Script Editor".

Crop-Record Screen Instantly Macros.kmlibrary (46.6 KB)

Record Screen.scptd.zip โ€“ BackBlaze

1 Like

Looking forward to looking at these.

But first:

If you ever get stuck like that, โŒƒโŒ˜โŽ‹ will stop the recording (unless you've overridden that shortcut elsewhere).

1 Like

Those who downloaded the Record Screen.scptd.zip file, please re-download. The old one contained debugging leftovers that I forgot to remove before uploading. The link has been updated.

1 Like

The macro was updated to record with the 1:2,07 aspect ratio, and so were the links.

1 Like

Updated the download link to Record Screen.scptd by choosing the BackBlaze service.

1 Like

Removed redundancies in the code of Record Screen.scptd to streamline user interaction.

1 Like

Updated and re-uploaded Record Screen.scptd

1 Like

Record Screen.scptd has been updated for the Unexported movie information dialog to report the average frame count instead of the refresh frame count which wasn't the faithful representation of the actual frame rate.

The helper script Record_Screen.scptd has been updated. Remove the old one and put this one instead. Since the initial post is uneditable I post the new link here. The link to the scptd file in the initial post is no more.

Record_Screen.scptd | Backblaze

A demo video of the macro