objective-see / OverSight

OverSight monitors a mac's mic and webcam, alerting the user when the internal mic is activated, or whenever a process accesses the webcam.
GNU General Public License v3.0
511 stars 39 forks source link

Alerts work, but script won't execute #61

Open AnselmEngle opened 9 months ago

AnselmEngle commented 9 months ago

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.

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.

f1dot4 commented 8 months ago

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

ryanrdetzel commented 8 months ago

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

objective-see commented 8 months ago

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 🙏🏽