Here is my modified version that was tested and works on macOS 10+
(including 13 Ventura and 14 Sonoma).#!/bin/bash ########## # #
FUNCTION: return a list of connect Displays and their resolutions # #
AUTHOR: Johnny Chin # ########## screens=$(/usr/s...