How can I extend Mic Drop with automation?
Mic Drop supports scripting via the command line, automations, and the Shortcuts app using AppleScript commands.
These features are available as of version 2.0.0.
AppleScript commands are a pro feature. You can try them out for free during your 30-day trial. If you’d like to continue using them after that, you’ll need to purchase a one-time unlock of Super Pro.
If you don’t have pro features, AppleScript commands will fail with the error number 402 and the message:
AppleScript commands require Mic Drop Super Pro. Open Mic Drop to upgrade.
Mic Drop will also show a window explaining how to upgrade. This window will appear at most once every 24 hours. If your script keeps running, the command will just silently fail.
Get mute state
You can read the mute state for Mic Drop using:
tell application "Mic Drop"
read
end tellAs a shell command:
osascript -e 'tell application "Mic Drop"' -e 'read' -e 'end tell'
The command will return a string: active if the microphone is active and will transmit sound, muted if Mic Drop has muted your default input device, or cannot-mute if your default input device cannot be muted by Mic Drop.
Toggle mute state
Toggles the mute state for Mic Drop.
tell application "Mic Drop"
toggle
end tellAs a shell command:
osascript -e 'tell application "Mic Drop"' -e 'toggle' -e 'end tell'
Mute microphone(s)
Mute all devices.
tell application "Mic Drop"
mute
end tellAs a shell command:
osascript -e 'tell application "Mic Drop"' -e 'mute' -e 'end tell'
Unmute microphone(s)
Unmute all devices.
tell application "Mic Drop"
unmute
end tellAs a shell command:
osascript -e 'tell application "Mic Drop"' -e 'unmute' -e 'end tell'
Check if Mic Check is visible
Check to see if the Mic Check window is on-screen.
tell application "Mic Drop"
readmiccheck
end tellAs a shell command:
osascript -e 'tell application "Mic Drop"' -e 'readmiccheck' -e 'end tell'
The command will return a string: visible if Mic Check is open, hidden if Mic Check is closed.
Toggle Mic Check window
Toggle Mic Check.
tell application "Mic Drop"
togglemiccheck
end tellAs a shell command:
osascript -e 'tell application "Mic Drop"' -e 'togglemiccheck' -e 'end tell'
Hide Mic Check
Hide the Mic Check window.
tell application "Mic Drop"
hidemiccheck
end tellAs a shell command:
osascript -e 'tell application "Mic Drop"' -e 'hidemiccheck' -e 'end tell'
Show Mic Check
Open the Mic Check window.
tell application "Mic Drop"
showmiccheck
end tellAs a shell command:
osascript -e 'tell application "Mic Drop"' -e 'showmiccheck' -e 'end tell'
Get Push-to-talk mode
(New in version 3.0.0.) Get the current Push-to-talk mode. Returns a sentence like Mic Drop Push-to-talk is currently: 'off', where the mode is one of 'off', 'push-to-talk', or 'hold-to-mute'.
tell application "Mic Drop"
getpushtotalkmode
end tellAs a shell command:
osascript -e 'tell application "Mic Drop"' -e 'getpushtotalkmode' -e 'end tell'
Set Push-to-talk mode
(New in version 3.0.0.) Set the Push-to-talk mode using one of the three values: 'off', 'push-to-talk', or 'hold-to-mute'.
tell application "Mic Drop"
pushtotalk mode "off"
end tellAs a shell command:
osascript -e 'tell application "Mic Drop"' -e 'pushtotalk mode "off"' -e 'end tell'
Get AirPods Press to Mute mode
(New in version 3.0.0.) Check whether AirPods Press to Mute is enabled. Returns either: 'AirPods Press to Mute is on' or 'AirPods Press to Mute is off'.
tell application "Mic Drop"
getairpodsmute
end tellAs a shell command:
osascript -e 'tell application "Mic Drop"' -e 'getairpodsmute' -e 'end tell'
Enable AirPods Press to Mute
(New in version 3.0.0.) Turns on the AirPods Press to Mute setting.
tell application "Mic Drop"
airpodsmuteon
end tellAs a shell command:
osascript -e 'tell application "Mic Drop"' -e 'airpodsmuteon' -e 'end tell'
Disable AirPods Press to Mute
(New in version 3.0.0.) Turns off the AirPods Press to Mute setting.
tell application "Mic Drop"
airpodsmuteoff
end tellAs a shell command:
osascript -e 'tell application "Mic Drop"' -e 'airpodsmuteoff' -e 'end tell'
Toggle AirPods Press to Mute
(New in version 3.0.0.) Toggles the AirPods Press to Mute setting between on/off.
tell application "Mic Drop"
toggleairpodsmute
end tellAs a shell command:
osascript -e 'tell application "Mic Drop"' -e 'toggleairpodsmute' -e 'end tell'
You can use these commands from a command-line script or anywhere else you can run AppleScript. If there are other things you’d like to be able to read or set with automations, let us know and we can probably add it. 😄
Still have questions? We’re here to help! Contact us