Mute iMac on Shutdown

Discussion in 'Mac Programming' started by si77hay, Mar 31, 2009.

  1. macrumors regular

    Joined:
    Nov 29, 2008
    Location:
    Stirling
    #1
    Does anybody know the best solution to mute a mac at Shutdown? I assumed this would be fairly simple with AppleScript? But I can find little mention on Google, and what articles I have found reference Shutdown scripts that I cannot find on 10.5.6

    My problem is that I like Shutting my Mac down rather than using Sleep. It wakes itself up everyday at 07:00, and if I've forgot to Mute it before Shutdown (doh!), I start hearing mail being received, Skype and iChat logging in etc.

    Any direction appreciated!
     
  2. macrumors regular

    Joined:
    Jan 20, 2008
    #2
    I'm working on it now dude.
     
  3. macrumors regular

    Joined:
    Jan 20, 2008
    #3
    Done, can you PM me your email so I can sent it you?
     
  4. thread starter macrumors regular

    Joined:
    Nov 29, 2008
    Location:
    Stirling
    #4
    For anybody else who may need it. This is "monk's" work, not mine!

    Code:
    display dialog " Are you sure you wish to shut down?"
    --mute the volume
    set volume 0
    --shut down OS X
    tell application "Finder"
    	shut down
    end tell
     

Share This Page