Screenshot
Resize windows
tell application "Firefox" to set the bounds of the front window to {25, 45, 1920 + 25, 1080 + 45}
Screenshot
Open/focus QuickTime Player and hit Cmd + Option + N.
Screencast
Open/focus QuickTime Player and hit Ctrl + Cmd + N.