Skip to content

Instantly share code, notes, and snippets.

@igorkulman
Last active January 30, 2017 20:02
Show Gist options
  • Save igorkulman/871c92d9fdadf8dea25d4bbbae28ce66 to your computer and use it in GitHub Desktop.
Save igorkulman/871c92d9fdadf8dea25d4bbbae28ce66 to your computer and use it in GitHub Desktop.
on run {input, parameters}
set curVolume to output volume of (get volume settings)
if curVolume >5 96 then
set newVolume to curVolume - 5
else
set newVolume to 0
end if
set volume output volume newVolume
end run
on run {input, parameters}
set curVolume to output volume of (get volume settings)
if curVolume < 96 then
set newVolume to curVolume + 5
else
set newVolume to 100
end if
set volume output volume newVolume
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment