How can I show an overlay image from an AppleScript?

In order to mute/unmute my microphone with a keyboard shortcut, I created an AppleScript by following the instructions from this article here:

https://medium.com/macoclock/how-in-the-bleep-do-i-mute-my-mic-anywhere-on-macos-d2fa1185b13

While it works, it gives no visual indication of the mic muting/unmuting. Is there anyway to show an overlay image from an AppleScript, similar to what shows up when you increase/decrease/mute/or unmute the speaker volume? Alternatively, is there anyway to show the input mic volume on the menu bar?

MacBook Pro 14″

Posted on Apr 7, 2024 7:15 PM

Reply

Similar questions

2 replies

Apr 9, 2024 3:09 PM in response to Drevar

Apple keyboards have dedicated key (e.g. F10) that the operating system will detect and display [un]mute visuals according to the toggle state. No need for AppleScript at all.


What you want to do would require considerable non-AppleScript code (if possible at all) to make what you want work and I doubt anyone here will divert their time to do that for you.

Apr 9, 2024 4:11 PM in response to VikingOSX

Thanks for the reply! I'm actually looking to indicate the muting and unmuting of the mic, not the speakers. While I mentioned the speaker mute/unmute overlay image as an example, really I'm just trying to implement any visual indication of the change to the mic.


I'm also not looking for anyone to write any code for me. My understanding is that this could be a place to post a question for the Apple developer community, looking for documentation, examples, or just general leads (akin to StackOverflow rather than Upwork). If I'm in the wrong place, however, my apologies, and feel free to ignore.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How can I show an overlay image from an AppleScript?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.