Skip to content

Instantly share code, notes, and snippets.

@danielrotaermel
Created November 8, 2020 18:45
Show Gist options
  • Save danielrotaermel/089ad6264b21d7866d31892047ee8551 to your computer and use it in GitHub Desktop.
Save danielrotaermel/089ad6264b21d7866d31892047ee8551 to your computer and use it in GitHub Desktop.
applescript to close picture-in-picture. I use this script with a keyboard shortcut in better touch tool
-- Author: Daniel Rotärmel
tell application "System Events"
if exists (window 1 of process "PIPAgent") then
click button 1 of (window 1 of process "PIPAgent")
end if
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment