Play sound when awaking from sleep?

Hello! I'd like to make my Mac play a sound (.aif file) each time it awakes from sleep... any way to do this? How about playing a sound when starting up?
Thanks!
John Berry
iMac g5 Mac OS X (10.4.4)

Hi, John.
1. SleepWatcher isn't a tool for Terminal newbies, but it's the only utility of its kind of which I am aware. My book focuses on troubleshooting — valuable on its own — but not programming: implementing tasks with utilities like SleepWatcher is clearly in the programming category and involves writing shell scripts or AppleScripts.
I don't do programming tutorials on the Discussions since they can become very time consuming and if you make errors, then we get into a long thread trying to resolve them, which can be very difficult using a vehicle like the Discussions. I try to focus my limited time here on helping people troubleshoot their Macs. For questions like your post, I try to point them in the right direction or give them steps that can be accomplished without programming. I'm sure you can appreciate that.
2. You wrote: "Also, I can add my file to the Login Items pane but it doesn't automatically play -- QT starts up, loads the file, but it doesn't play automatically..."I see you sorted that out. I suspect you did so by changing the default application for the sound file in question to QuickTime and have QuickTime preferences set to play movies automatically when opened.
With QuickTime Pro you can save any sound file as a .sfil file and use PlaySnd to play it via Method B in my prior post.
3. You wrote: "I've been a Mac user since 1984... it was easy then, your file just went in the Startup Items folder (that doesn't seen to have the same function anymore...)."It still does.
Whether something is placed in /Library/StartupItems or added to your account's Login Items depends on if it is a System-wide function that should be started for all users before any users log in (e.g. enable the process used by anti-virus solution), or execute when a specific user logs in, respectively.
The SleepWatcher case is different: you need to know how to program the specific action you want the Mac to perform when sleep is invoked using a shell script.
There are plenty of resources available to learn the Terminal and Shell Scripting.
- I recommend some books and other online resources in my "Learning About Mac OS X" FAQ.
- Once you've made some headway in learning Terminal, one can find a plethora of resources concerning shell scripting with this Google search.
- There are a variety of Developer-related Apple Discussions for asking coding questions concerning UNIX/Terminal, AppleScript, etc.
- You could always e-mail SleepWatcher's author (his e-mail address is at the bottom of his Web page) for advice.
Why not take up the challenge of learning Terminal and a bit about shell scripting? It can be fun as well as a valuable skill. We only grow by challenge!
One of my mottos is: "Give a man a fish, feed him for today. Teach a man to fish, feed him for a lifetime."
Good luck!
Dr. Smoke
Author: Troubleshooting Mac® OS X
Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:
I may receive some form of compensation, financial or otherwise, from my recommendation or link.

Similar Messages

  • Drive sound when waking from sleep?

    Hi, I am getting a short 2-3 second drive sound when I wake my MBP from sleep. It sounds like it is checking to see if there is a disc in the drive or something. Also might be described as the sound when your first put a disc into the drive(but maybe shorter). Is this normal? And also if it is normal is there a way to stop it from making the noise because I actually find it annoying me, I wake my computer from sleep a lot throughout the day. My friends MBP who bought his just a few months before mine does not make a sound when waking from sleep. Thanks.

    They all do. All of them. Yours. Mine. Your friend's. Old PowerBooks. Brand new MBPs. Everything in between.
    My friends MBP who bought his just a few months before mine does not make a sound when waking from sleep.
    Maybe his optical drive is broken?
    Or, more likely, it's not waking up from sleep at all - Energy Saver settings can be used to set the display to sleep before the MBP sleeps - a key press will "wake" the display, but the MBP itself was not asleep, thus no noise from the drive when it the display is reactivated.

  • Speakers pop at restart or when awaking from sleep

    My external speakers pop everytime I boot my iMac up and also everytime it awakes from sleep. It's a loud, dangerous pop (for the speakers). What is causing this and how can it be fixed?

    This is a common audio problem between not 100% compatible frequencies, and different power sources.  I remember my old LP player would pop if a little dust was on the needle when it landed on the a LP.  Otherwise it was fine.  The iMacs capable of running 10.7 have digital external speaker port which can have standard Sony minijack audio or miniToslink connected.  If the frequency is not set right on the Audio Midi setup, or the recorded audio file, it can cause static too.   A bit of corrosion on the minijack can cause audio static when connected too.  If connected to analog audio it can also be caused by EMF fields from improperly shielded speakers.  The best way to fix it identify all audio devices hooked up, and to what ports, someone might be able to identify the source of the problem.  USB audio devices without their own power can have problem with sleep, since USB goes into a low power mode.

  • Cracking strange sound when comming from sleep

    When comming from a sleep (not always, but when beeing longer in sleep) I hear (next to the superdrive sound that is normal) a sort of cracking 'strange' sound out of my left/center area just around where the fan is.
    It's a sound like you plugin a radio with an headplug let's say. Seems to come out of the speakers, but i'm not sure about that.
    Is it normal (didn't do this before, only noticed it now after a month)? Or can i add another point to the list when i'm calling applecare (i really have a very monday morning machine i guess,: cpu whine, display not ok, strage blinking numlock sometimes).
    Did find some thinks that look alike:
    http://www.macworld.com/forums/ubbthreads/showflat.php?Cat=0&Number=420873&an=0& page=9
    http://discussions.apple.com/thread.jspa?messageID=2565669&#2565669

    Great description...! I thought it sounded a bit like the trashcan sound.
    I have got the same thing which isn't exactly my biggest problem... I also have the situation, that my MB doen't go to sleep, unless I directly tell it to. I thought the sound was related to that problem, but as none of you have mentioned it...?
    Also my MB cannot be started normally every now and again and I have to do a PRAM reset to get it running again.
    This is my second MB, so I'm slowly running out of patience...
    The first one had the RSS, by the way.
    MacBook   Mac OS X (10.4.7)   Wish I had my iBook back...!

  • Rustling/Static-like sound when awakening from sleep?

    It seems to be coming from the speaker, the left side I think, and it definitely isn't the sound of the drive spinning up.
    Anyone know what this issue is, how to fix it, or if it is a sign of a more serious problem?

    I've got the same issue, though I don't really worry about it - it's definitely coming from the speakers - when I awaken it from sleep I can hit the volume buttons and it'll get louder/softer. Unfortunately, I'm not sure why it does that - you're not alone, though it doesn't seem like a serious problem.

  • Swoosh noise when awakes from sleep

    When I open my MBP display from sleep, I hear an odd (to me at least) noise like a swoosh...or even like a sweeping noise. First I hear the noise (the one that sounds like gears are moving) but then I hear a swoosh noise. Sometimes two swoosh noises. Its just an odd noise, and I don't hear it all the time. I'm just wondering if any experts out there might have a diagnosis. Should I bring it in for check up? Or is this the normal noise?
    Thanks for listening to my rant.

    More than likely you are hearing the fans powering up...

  • Unusual sound when waking from sleep

    To start off I have a black MacBook that I bought around March of 2006. Never had this problem before so I am a little concerned.
    Okay to the issue, I woke my Mac up around 1:40pm today but instead of the usual wake up noise I got something else. It's the regular noise only it sounds a bit slower and lasts a second or two longer then it normally does. I wait a bit then I put my Mac back to sleep. After waiting 2 or 3 minutes I woke my mac back up with the same results. It wakes up fine, but it emits that unusual sound when waking up. I don't know if this is related or not but before waking the first time I did notice that my Mac was a little warn where the powercord attaches even though it had been off since about 3pm the day before and was located in a relatively cool room.
    I also noticed when I put my ear up to my Mac that there is a weird buzzing sort of sound. It is continuous, but can only be heard if I put my ear up to the keyboard.
    I'm wondering if something went bad on my Mac, since I have had it for about 3 years now with no prior issues other then heat issues.
    Any help would be much appreciated.

    The usual wake up noise you refer to is the optical drive spinning so as to check to see if there is a disc inserted in it.
    Your Macbook should not be at all warm anywhere if it had been off for a few hours as you said. It should be room temperature if it was indeed shut down. Are you certain it was shut down?
    I don't have any solutions to your problem, but just stating a couple points.
    If it continues to do this try booting up into another User Account. Create a new account for this purpose. If it works good in a new, clean user account then the problem is in your main account. If the problem still persists in the new account try an Archive and Install with the install DVDs. If this does not cure it then the problem may well be hardware, but not for certain. But, this is the non-destructive, non-evasive way to go to start with solving the problem.

  • Must restart when awakes from sleep

    brand new 2.8 quad CORE. 10 GB RAM
    always when i awaken it a grey curtain comes down and says i must restart the computer. This happens all the time awakening.
    any clues?
    leopard 10.5.2
    phsop firefox mail graphic converter launched
    will 10.5.3 fix this?
    thanks

    Test your RAM.
    Try without the Apple RAM.
    Make sure it is installed in the proper slots and configuration.
    Try with only half of 3rd party memory.
    What you see is a kernel panic. There are a number of FAQs to help walk through causes.
    Test your circuit and what else is on the circuit, the inrush on wake from sleep could overload a small UPS or if you have too much equipment on same circuit.
    There was an EFI firmware update 1.3 to address a wake from sleep issue that would usually result in a restart.
    If you used Migration Assistant to import applications from a G5 or earlier, that can result in problems as well.
    Run Apple Hardware Test.
    Try with installing Leopard on another drive and see how it goes with just Apple OS and updates.
    Remove anything hardware to bring it to stock. Even a faulty USB device or cable can cause k/p.

  • Kernel Panic when awaking from Sleep mode - since Security Update 2007-04

    Since installing security update 2007-04, whenever I put the ibook into sleep mode, either using the menu or closing lid, when I reopen, I get the Kernal Panic black screen asking for a restart. I then reboot and everythings ok.
    Any ideas?
    Machine Model: iBook
    CPU Type: PowerPC 750 (22.15)
    Number Of CPUs: 1
    CPU Speed: 500 MHz
    L2 Cache (per CPU): 256 KB
    Memory: 640 MB
    Bus Speed: 67 MHz
    Boot ROM Version: 4.2.0f4
    Serial Number: UV133252LAN
    Sales Order Number: M7692LL/A

    Rod Hagen suggests:
    Disconnect everything, then
    1) Boot up from OSX DVD or CD
    2) Repair disk and repair permissions using disk utility
    3) If now possible to boot from the internal download, run the "Combo" Update, and then install the SU.
    4) if not possible then do an "archive and install" of the OS while booted from the OSX DVD/CD before checking the drive again and updating
    5) If not possible to boot from CD/DVD do a PRAM and/or PMU reset.
    ( … if the person concerned has an up to date backup on a bootable drive, then they should simply check the internal drive properly with DU and then clone the backup back to the internal, check the internal drive again, and then install the SU update.)

  • Missing sound + missing USB power (sometimes) from Thunderbolt Display when waking from sleep

    Hi
    Two problems - one of which is driving med crazy!!
    Have the latest updates, and the display is connected to a MBA (mid 2011).
    The two are almost alwayes connected, and every time I wake the MBA from sleep, the Thunderbold Display does not "support usb sound" - the sound options are only MBA and headphones. Only a restart will give me the option to use Thunderbolt as sound output: WHAT TO DO!?!?!!
    Sometimes when waking from sleep the USB in the Display seems to be "off" - the will not charge my devices (iPhone, iPad etc.). Only reboot seems to fix this... I have seen this in other discussions but not found a permanent solution - any thoughts?

    Same here but reinstalling OSX is a bit drastic. I solved the problem by deleting a preference.
    Go to Macintosh HD then System then Library then Preference panes then Sound.prefPane
    Delete Sound.prefPane (you need to type your password).
    Logout or restart.
    This has happend twice this week so WHY is this suddenly occurring?
    Hi,
    I found this solution in the forum, but I can't find it again. I had cut and pasted it into a text file, because it solved my problem. I just don't want to take any credit for it. It did work for me. I had no problems for 3-4 weeks with the monitor, I have had the sound problem since last Friday. Very frustrating.
    BSGINC

  • I am not being able to play sound when I import a .MTS file from my folder

    I am not being able to play sound when I import a .MTS file from my folder on my sequence bar of my Premiere Pro CS6. Even if I use my Media Browser to import the file, the video plays fine, but the audio is disabled it seems. I don't know what to do since I have used .MTS files before without hassle on CS5.5. It is quite frustrating. What can I do?

    Hi debesh05,
    Please mention the Operating System that you are using and also make and model of the Camera that was used to capture those clips. Also, try to make another folder with the same name in the same location where the .MTS files are and move all the clips into the new folder and then try to import the files again using Media Browser in Premiere Pro CS6. If this doesn't work then make a copy of one file and rename it as .M2TS and then import that single file into Premiere Pro CS6. Please update if either of the solution works for you.
    Regards,
    Vinay

  • HT1766 no sound from my speaker, headphones play normal, phone rings normal, alarm sound normal, re-installed software, will not play sound when music is played from speaker but speaker works for everything else....

    No sound from my speaker iphone 4S, headphones play normal, phone rings normal, alarm sound normal, re-installed software, will not play sound when music is played from speaker but speaker works for everything else....(phone ring and alarm)... no notification sound for text messages......
    I checked all settings..... good...
    confused???
    please advise,

    it's a hardware issue read more about it here
    https://discussions.apple.com/thread/1343532?start=315&tstart=0
    more hits
    https://www.google.dk/search?client=opera&q=4:3&sourceid=opera&ie=utf-8&oe=utf-8 &channel=suggest#client=opera&hs=UGk&channel=suggest&sclient=psy-ab&q=iphone+stu ck+in+headphone+mode&oq=iphone+stuc&gs_l=serp.3.3.0l4.412779.418971.0.420896.16. 9.2.5.5.0.86.545.9.9.0...0.0...1c.1.9.psy-ab.HHtp6aEcO5U&pbx=1&bav=on.2,or.r_cp. r_qf.&bvm=bv.45175338,d.bGE&fp=43d9a4347e8aaeda&biw=1535&bih=773

  • When my new MacBookPro/Lion awakes from sleep I get network Diagnostics telling me I'm not connected to the internet. After I step through ND it says connection is fine and I can connect. software bug? Corrupted file carried forward from my old Mac?

    When my brand new MacBookPro awakes from sleep it has lost its internet connection. It goes to Network Diagnostics and I need to step through all the pages to get to the end where it says connection is o.k. Is this a bug in Lion or could it be a corrupt file migrated over from my old MacBook Pro which would frequently lose its Airport connection and couldn't be reconnected until it cooled down. (This one always shows full bars on the Airport indicator).

    That's definitely just paranoia.  First, because in sleep mode, there's no internet connection.  The computer might as well be turned off as far as the network is concerned, and there's no activity in the computer other than a bare trickle of electricity to maintain the RAM.  The processor is doing nothing.
    Second, Macs are quite difficult to hack, and if you're on a wireless network, the wireless router protects you from incoming attacks from the outside world.
    Of course, you should be able to leave Safari open with no open windows and not affect your ability to get online when it wakes up.  If you can reproduce that reliably, and if I can as well (haven't had a chance to try it yet), then it should be reported to Apple.

  • AIR event when computer awakes from sleep mode?

    Hi,
    I have an AIR app that displays a new set of photos every 12 hours. Some users are complaining that the photos are not refreshed after 12 hours if the computer had been in sleep mode over night.
    At first I thought possibly the Timer was stopping when in sleep mode so I instead modified the Timer to execute every minute and just check to see if the last refresh was at least then 12 hours ago. This still did not solve the issue.
    Is there an event dispatched I can listen for to detch when the computer awakes from sleep mode? Or if any one has any other suggestions.
    Thanks,
    Ryan

    No answer till now. Better close it.

  • Open browsers quit when computer awakes from sleep mode

    This happens onlyon my Powerbook G4 15" 1.33GHZ, and not on my iBook 700MHz. When the PB awakes from sleep mode, any open browser quits. Following is, as an example, the debug output in Terminal of Firefox quitting (I have already sent those reports both to Apple and to the authors of the browser).
    ==================
    Exception: EXCBADINSTRUCTION (0x0002)
    Code[0]: 0x00000002
    Code[1]: 0x0523538c
    Reading symbols for shared libraries ................. done
    /Users/shavital/374: No such file or directory.
    Attaching to program: `/Applications/Firefox.app/Contents/MacOS/firefox-bin', process 374.
    Reading symbols for shared libraries ............................................................................... ....... done
    Reading symbols for shared libraries ........................... done
    0x0523538c in ?? ()
    Program received signal EXCBADINSTRUCTION, Illegal instruction/operand.
    0x0523538c in ?? ()
    (gdb) Quit
    (gdb) quit
    The program is running. Quit anyway (and detach it)? (y or n) y
    Detaching from program: `/Applications/Firefox.app/Contents/MacOS/firefox-bin', process 374 thread 0xd03.
    ===================
    Thanks in advance.

    No answer till now. Better close it.

Maybe you are looking for

  • How do you check if a firmware is missing

    my mac is slow and some diagnostic reports messages is showing or maybe I might have mistakenly deleted some file, PLEASE anyone help me or should I reinstall the software if that is the best option????

  • Regarding performance tuning

    hi, i have developed a report program.its taking too much time to fetch the records.so what steps i have to consider to improve the performance. urgent plz.

  • Can't install iTunes

    Everytime I try to install iTunes, it tells me that there's an older version of iTunes.  But there isn't.  I've stripped every mention of iTunes from everywhere, including the registry. Apple tells me to start with version 7.5 and work my way up to t

  • How to Display Record Count on Search page?

    Hi I am new to OAF and one of the requirement is to display record count on Search page . I followed the same steps in Emp Search page as an example and created my search page. I followed the following steps 1) I created a transietn Attribute in VO b

  • Mapping webapp URLs to a single servlet which forwards to JSP

    I am using JSP for page presentation, but I want to have all requests           intercepted by a servlet, which will perform various functions before           forwarding to the requested JSP page. In general, I want the URL to           reflect the