Results 1 to 5 of 5
  1. #1
    Adjusting volume using applescript?
    PrimalYeti's Avatar
    Member Since
    Jun 21, 2006
    Posts
    54
    Specs:
    MacBook Pro Retina 15" 2.6GHz Intel Core i7, 8GB DDR3L RAM, 512GB SSD, NVIDIA GeForce GT 650M
    Adjusting volume using applescript?
    Hey everyone;

    Ok, ill start of by saying i'm a complete newb when it comes to scripting using applescript. I want a script, or something, that will turn my my volume to zero whenever I turn my mac off.

    Anyhelp?

  2. #2
    Adjusting volume using applescript?

    Member Since
    Oct 27, 2005
    Posts
    4,702
    Is this anything to do with the startup chime?

    I can't write Applescripts but you would need one for shutdown and another for startup. Another alternative is to have a plug in the headphone jack which would keep your MacBook Pro quiet at startup.

  3. #3
    Adjusting volume using applescript?
    PrimalYeti's Avatar
    Member Since
    Jun 21, 2006
    Posts
    54
    Specs:
    MacBook Pro Retina 15" 2.6GHz Intel Core i7, 8GB DDR3L RAM, 512GB SSD, NVIDIA GeForce GT 650M
    Quote Originally Posted by Pulse-8 View Post
    Is this anything to do with the startup chime?

    I can't write Applescripts but you would need one for shutdown and another for startup. Another alternative is to have a plug in the headphone jack which would keep your MacBook Pro quiet at startup.
    I want a script to do it though, i dont want to have to buy a headphone plug

  4. #4
    Adjusting volume using applescript?
    puaerotch's Avatar
    Member Since
    Sep 21, 2005
    Location
    ohio
    Posts
    809
    Specs:
    iBook G4 OSX Tiger
    I'm not sure how to get it the script to run on shut down so this script sets the volume to mute then starts the shut down process.
    Code:
    set volume with output muted
    
    tell application "Finder" to shut down
    Alternatively, there is a preference pane available that supposedly does what you are asking for. I haven't used it so I can't give you a review but I thought you might want to take a look at it.
    http://www.versiontracker.com/dyn/moreinfo/macosx/23141

  5. #5
    Adjusting volume using applescript?
    xstep's Avatar
    Member Since
    Jun 25, 2005
    Location
    On the road
    Posts
    3,231
    Specs:
    2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. adjusting podcast volume
    By marden in forum Music, Audio, and Podcasting
    Replies: 0
    Last Post: 02-23-2012, 05:42 PM
  2. Macbook '09 volume isn't adjusting.
    By Riss in forum Apple Notebooks
    Replies: 2
    Last Post: 11-17-2011, 12:04 AM
  3. Recognize volume in AppleScript?
    By Babkockdood in forum OS X - Development and Darwin
    Replies: 1
    Last Post: 03-19-2010, 01:13 PM
  4. Replies: 1
    Last Post: 06-13-2006, 04:44 AM
  5. Adjusting volume on keyboard
    By Emuleem22 in forum Switcher Hangout
    Replies: 2
    Last Post: 03-05-2006, 07:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •