This script just opens Quick Time Player and turns on recording of part of your screen.

It has a dependency on another script by @johnlindquist app-launcher: https://www.scriptkit.com/johnlindquist/app-launcher

Install record-screen

// Menu: Record Screen
// Description: Start QuickTime player and open screen recorder
// Author: Jakub Olek
// Twitter: @JakubOlek
await run("app-launcher", "QuickTime Player");
await keystroke("command control n");