Hi everyone, while I understand that keyboard maestro has a built-in action in which the volume level of Apple Music can be raised by 10%, is there any easy way to change the volume with smaller increments? (Namely, 1%?). Thanks so much, I am so grateful to this forum for the invaluable advice I have received thus far.
Addendum; I have gotten it to work with a 1% volume increase using the following:
The only problem is: when the volume reaches 100 or 0, it no longer wants to change. However, it is able to change as long as the value is not 100 or 0. (For example, if the Apple Music slider value is at 50, I can raise it to 51; but I cannot go from 0 to 1 or 100 to 99). Would anyone have any insight? Thanks so much!
Hi there; I have a similar request but with Apple Music specifically. Is there a special way to apply the an incremental volume change within Apple Music (and not system volume) using keyboard maestro?
Right now, the only option available to me from, among the actions list is to increase it by 10% at a time. Thanks!
The only problem is: when the volume reaches 100 or 0, it no longer wants to change. However, it is able to change as long as the value is not 100 or 0. (For example, if the Apple Music slider value is at 50, I can raise it to 51; but I cannot go from 0 to 1 or 100 to 99). Would you have any insight? Thanks so much!
How perplexing, I am still running into the same problem even after making this change. Would you have any other suggestions? Maybe I am missing something fundamental? Thanks again for your help.
Not sure how to implement this ): Would you mind furnishing an example if possible? I'm just confused why it works for all volume states except for 0 and 100
Sorry to be so annoying--but I've just implement your code exactly, and I still have the same issue. How could this be? Is it something to do with my machine somehow?
I know it's years later, but I had the same problem as you (for whatever reasons volume wouldn't go up from 0 or down from 100.) I just figured out why your if/then statement didn't work. Apparently the Music app doesn't go from 0 to 100, but it goes from 1 (no volume) to 99 (max volume.).
This worked for me
Up by 1%
tellapplication "Music" set vol to sound volume set vol to vol + 1 if vol isless thanorequal to 1 then set vol to 2 endif set sound volume to vol endtell
Down by 1%
tellapplication "Music" set vol to sound volume set vol to vol - 1 if vol isgreater thanorequal to 99 then set vol to 98 endif set sound volume to vol endtell
Loving this macro using Dusey's script. I had already had the Music 10% as 2 separate macros up and/or down, using a given pair of keystrokes...both of which I've now rebuilt with Dusey's script...but with one adjustment.
Instead of the trigger being pressed causing a single iteration of firing the macro off, I changed the trigger to "is down" instead of "is pressed", which means I can hold the trigger and listen for my preferred volume, and then let go...aka, the macro keeps firing giving a smooth adjustment until I let go.