I need to turn up system volume temporarily and then set it back to the value it was before. I'm getting an error:
error "Can’t make {output volume:29, input volume:58, alert volume:46, output muted:false} into type real." number -1700 from {output volume:29, input volume:58, alert volume:46, output muted:false} to real
Does anyone know the correct way to do this? Here is my code.
tell application "Finder"
set myVolume to get volume settings
tell application "Finder" to set volume 5
tell application "Finder" to set volume myVolume
end tell