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

Mute/unmute via applescript? #306

Open
wc8 opened this issue Oct 24, 2014 · 0 comments
Open

Mute/unmute via applescript? #306

wc8 opened this issue Oct 24, 2014 · 0 comments

Comments

@wc8
Copy link

wc8 commented Oct 24, 2014

I can use the following to toggle mute sound, but as far as I can tell, it won't check if the sound is already muted or not muted.

tell application "Pomodoro" to start pomodoroName duration workLength break breakLength
tell application "System Events"
tell application "Pomodoro" to activate
key code 29 using {command down, control down, option down}
end tell

Is there a way to tell the app to "mute" or "unmute" specifically?
For example,
• applescript "studying" starts a pomodoro and tells it to mute sound (no ticking noise)
• applescript "housework" starts a pomodoro and tells it to unmute sound (ticking noise)
• applescript at the end of a session unmutes sound (default ticking noise)

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

1 participant