objective-see/OverSight

Alerts work, but script won't execute

AnselmEngle opened this issue · 3 comments

I'm trying to get a script to execute when OverSight triggers a camera/mic on/off alert. The alerts trigger, but the script doesn't run.

  • Mac Air
  • M1 chip
  • Sonoma 14.3.1
  • OverSight

The script:

#!/usr/bin/env osascript

use scripting additions

IMPLEMENTATION:

on run argv
tell application "Shortcuts Events" to run the shortcut named "TurnPlugOn"
end run
--------------------------------------------------------------------❮!END❯

The script works just fine when I trigger it manually, but doesn't run when I turn my camera or mic on, even though the alerts from OverSight come on. I have linked the script in OverSight. I gave it permissions in Terminal. It's not triggering.

script execution on M1 & Sonoma 14.3.1 works for me (bash script).

Same issue on Sonoma 14.4 (23E214), no command will run but alerts are working

Aloha, to help troubleshoot, can you please:

  1. Open a terminal, and run:
log stream --level debug --predicate="subsystem='com.objective-see.oversight'"
  1. Trigger an alert (which should also try to execute your script)

  2. Post any relevant log/error msgs here.

Mahalo 🙏🏽