Trigger "Screensaver active" possible?

Hello!

I would like to make a new macro that set the volume on mute every time my screensaver goes on.

I couldn’t find a correspondent trigger.

Do you have any idea?

Thanks!

Regards,
Vlad

There is no such trigger.

You could try ControlPlane, perhaps that can detect the screensaver (and then trigger a macro).

Could the activity of the screensaver be detected via an applescript?

I found this:

https://swannman.github.io/scriptsaver/

It’s 5 years old, and I have no idea if it works. But it does include the source code, and it has a link to contact the author, but I don’t know if it’s still an active link or not.

It’s actually a pretty smart idea. It’s a screensaver itself. You can configure it to run an AppleScript, and run another screensaver.

1 Like

Thanks, Dan, it worked like a charm!

It activates now this one-liner

set volume with output muted

that mute the volume when the screensaver starts and activates this one:

set volume without output muted

that unmute the volume when the screensaver stopps and this is exactly
what I wanted.

Thanks again!

Regards,
Vlad

So you downloaded it and it worked? Awesome!

There is no such trigger.

You could try ControlPlane, perhaps that can detect the screensaver
(and then trigger a macro).

I have (another) workaround: I've made a macro that

  • sleep the screens
    and
  • mute the volume (with the same one-line applescript:

set volume with output muted

)

so in the end reaches the same goal :slight_smile:

Yes, that is a good solution when you want task A to trigger task B - write a macro that does task A & B and trigger it some other way.

Your first image didn’t come through.

It was only one image.
I don’t know why it was bad inline-d. Sorry!

Well, Peter mentioned Task A triggering Task B, and I wondered what the other task was. :slight_smile: