Sound (volume) adjustment?

Hi, As you can see from script [one], the keyboard adjusts the volume in increments of 6 (approximately).
In script [two], the keyboard adjusts the volume in increments of 0.4 (approximately).
If it is possible, I would like a script that allows adjustment of the volume in increments of one-half of the keyboard increments.
To clarify, the script should only move one increment on each individual click (in the Dock).
My preference would be to lower the volume.
If this is possible, I imagine that another script could be written to increase the volume by one increment per click.

-- script [one]
set volume output volume 100
delay 0.5
beep
set volume output volume 94
delay 0.5
beep
set volume output volume 88
delay 0.5
beep
set volume output volume 81
delay 0.5
beep
set volume output volume 75
delay 0.5
beep
set volume output volume 69
delay 0.5
beep
set volume output volume 62
delay 0.5
beep
set volume output volume 57
delay 0.5
beep
set volume output volume 50 -- mid-way
delay 0.5
beep
-- etc.
--  script [two]
set volume 7
delay 0.5
beep
set volume 6.6
delay 0.5
beep
set volume 6.1
delay 0.5
beep
set volume 5.7
delay 0.5
beep
set volume 5.2
delay 0.5
beep
set volume 4.8
delay 0.5
beep
set volume 4.3
delay 0.5
beep
set volume 3.95
delay 0.5
beep
set volume 3.55 -- mid-way
delay 0.5
beep
-- ect.

Any and all help is very much appreciated.

Tom

Browser: Camino 1.6
Operating System: Mac OS X (10.4)

You said you wanted to be able to click on the Dock to do this, so save the following as a stay open app.

(It could use some polishing, of course…)

Peter B.



on run
	set volume output volume 100
	set current_volume to output volume of (get volume settings)
	beep
	tell me to activate
	display dialog current_volume giving up after 2
end run

--

on reopen
	set current_volume to output volume of (get volume settings)
	set volume_decrement to current_volume - 3
	set volume output volume volume_decrement
	set current_volume to output volume of (get volume settings)
	beep
	tell me to activate
	display dialog current_volume giving up after 2
end reopen

Hi Peter, Here’s the part of the script I wanted and it works like a charm.

-- Decrease volume by Peter Bunn, 5-10-08
set current_volume to output volume of (get volume settings)
set volume_decrement to current_volume - 3
set volume output volume volume_decrement
-- Increase volume by Peter Bunn, 5-10-08 - tweaked by me :-)
set current_volume to output volume of (get volume settings)
set volume_decrement to current_volume + 3
set volume output volume volume_decrement

Thank you very much!

Tom