4 ms·
Could you share that script?
by memoriasit 4y ago
Could you share that script?
- hammock 4y agoWould it work for Mac?
- Twirrim 4y agoIt relies on xdotool, which I don't think works on Mac? If I was still on mac, I'd probably try and use hammerspoon somehow. I used that for a few bits of automation, and I know it had ways to choose applications.
- Twirrim 4y agoHopefully I get this right with the formatting. #!/bin/sh ZOOM=$(xdotool search --limit 1 --name "Zoom Meeting") ZOOM_WEBINAR=$(xdotool search --limit 1 --name "Zoom Webinar") if [ -z "${ZOOM}" ]; then xdotool windowactivate --sync "${ZOOM_WEBINAR}" elif [ -z "${ZOOM_WEBINAR}" ]; then xdotool windowactivate --sync "${ZOOM}" fi sleep 0.1 xdotool key --clearmodifiers "alt+a"