Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Adjusting volume using applescript?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="xstep" data-source="post: 297954" data-attributes="member: 11647"><p>To mute the volume during shutdown you could try this method which works on my G4 tower. I don't have the time to test it on my Intel right now.</p><p></p><p>Unix has special scripts that get executed during startup and shutdown. As a safeguard the system also looks for custom 'local' scripts named rc.local and rc.shutdown.local in the Unix directory /etc.</p><p></p><p>In the shutdown script place</p><p>osascript -e "set volume with output muted"</p><p></p><p>In the startup script place</p><p>osascript -e "set volume without output muted"</p><p></p><p>That startup script will restore your volume to what it was before you muted on shutdown, but after the startup chime would have sounded. In other words, this gets you silent startups.</p><p></p><p>You'll need sudo (admin) privilege to create or alter the files. Search the forums if you don't know what that is.</p></blockquote><p></p>
[QUOTE="xstep, post: 297954, member: 11647"] To mute the volume during shutdown you could try this method which works on my G4 tower. I don't have the time to test it on my Intel right now. Unix has special scripts that get executed during startup and shutdown. As a safeguard the system also looks for custom 'local' scripts named rc.local and rc.shutdown.local in the Unix directory /etc. In the shutdown script place osascript -e "set volume with output muted" In the startup script place osascript -e "set volume without output muted" That startup script will restore your volume to what it was before you muted on shutdown, but after the startup chime would have sounded. In other words, this gets you silent startups. You'll need sudo (admin) privilege to create or alter the files. Search the forums if you don't know what that is. [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Adjusting volume using applescript?
Top