Got a similar question here - https://github.com/clickysteve/alfred-remote-workflows/issues/1
Hit Remote at the top of Alfred
Click on the + icon in the bottom left
Select Workflows
Select VLC Remote Control
Select VLC
That will add in the Remote page for you to use in the iOS App.
Okay. Here is a script that I just wrote for you.
on increase_volume(step_size_)
set volume_ to output volume of (get volume settings)
if volume_ > (100 - step_size_) then
set volume output volume 100
else
set volume output volume (volume_ + step_size_)
end if
if output muted of (get volume settings) is true then
set volume without output muted
end if
end increase_volume
on decrease_volume(step_size_)
set volume_ to output volume of (get volume settings)
if 0 > (volume_ - step_size_) then
set volume output volume 0
set volume with output muted
else
set volume output volume (volume_ - step_size_)
end if
end decrease_volume
on mute_volume()
set volume with output muted
end mute_volume
on unmute_volume()
set volume without output muted
end unmute_volume
That defines four functions (handlers): increase_volume, decrease_volume, mute_volume, and unmute_volume.
Now, this is not complete because for each action, you need to declare what one you're doing. (I don't know you're writing this as a workflow or as simple run applescripts....). If you want to create a workflow with those actions, then use this script, and then use an argument to figure out which function to call. (Note: step_size_ is a variable which is how much you want to increase the volume. Min volume is 0, max volume is 100. If your step_size_ is 7, then it will increase by 7 each time. This can use integers only).
If you want to just have a "run script" for each, then cannibalize the functions. In other words, create a "Volume Up" remote button that is a "Run Applescript". In that box, put in this:
on alfred_script()
set step_size_ to 7
set volume_ to output volume of (get volume settings)
if volume_ > (100 - step_size_) then
set volume output volume 100
else
set volume output volume (volume_ + step_size_)
end if
if output muted of (get volume settings) is true then
set volume without output muted
end if
end alfred_script
(And adjust the step size to whatever you want).