AppleScript to automatically set volume to mute during shutdown

sultanoflondon

macrumors 6502
Original poster
Dec 3, 2013
316
14
Hi all,

When I run the following script, an error dialog box is displayed, which states " Syntax Error Expected end of line but found identifier." Can someone help me please?

[start of AppleScript]
tell application "Finder"

during shutdown

set curVolume to get volume settings

if output muted of curVolume is false then

set volume with output muted

else

set volume without output muted

end if

end tell
[start of AppleScript]

Thank you!