Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alerts work, but script won't execute #61

Open
AnselmEngle opened this issue Feb 21, 2024 · 3 comments
Open

Alerts work, but script won't execute #61

AnselmEngle opened this issue Feb 21, 2024 · 3 comments

Comments

@AnselmEngle
Copy link

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.

@f1dot4
Copy link

f1dot4 commented Mar 12, 2024

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

@ryanrdetzel
Copy link

ryanrdetzel commented Mar 26, 2024

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

@objective-see
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants