diff options
| author | Ryan Schanzenbacher <ryan@rschanz.org> | 2026-07-09 22:15:53 -0400 |
|---|---|---|
| committer | Ryan Schanzenbacher <ryan@rschanz.org> | 2026-07-09 22:15:53 -0400 |
| commit | d06784958d73159b5e4abafe5114804662114ed7 (patch) | |
| tree | d8464262c1aa1f10553a5b11a9fda3e505e71f7f /users/ryan/modules/simple-bar/simple-bar-source/lib/scripts/zoom-video-status.applescript | |
| parent | 1a71e94eb8ca1585201263cf654611ef6849d359 (diff) | |
move ubersicht modules in tree
Diffstat (limited to 'users/ryan/modules/simple-bar/simple-bar-source/lib/scripts/zoom-video-status.applescript')
| -rwxr-xr-x | users/ryan/modules/simple-bar/simple-bar-source/lib/scripts/zoom-video-status.applescript | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/users/ryan/modules/simple-bar/simple-bar-source/lib/scripts/zoom-video-status.applescript b/users/ryan/modules/simple-bar/simple-bar-source/lib/scripts/zoom-video-status.applescript new file mode 100755 index 0000000..367821f --- /dev/null +++ b/users/ryan/modules/simple-bar/simple-bar-source/lib/scripts/zoom-video-status.applescript | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | property btnTitle : "Stop video" | ||
| 2 | |||
| 3 | if application "zoom.us" is running then | ||
| 4 | tell application "System Events" | ||
| 5 | tell application process "zoom.us" | ||
| 6 | if exists (menu item btnTitle of menu 1 of menu bar item "Meeting" of menu bar 1) then | ||
| 7 | set returnValue to "on" | ||
| 8 | else | ||
| 9 | set returnValue to "off" | ||
| 10 | end if | ||
| 11 | end tell | ||
| 12 | end tell | ||
| 13 | else | ||
| 14 | set returnValue to "" | ||
| 15 | end if | ||
| 16 | |||
| 17 | return returnValue \ No newline at end of file | ||
