How to detect beep sounds with AppleScript?

I have a small dilema.
I created a script that I know generates the standard mac error sound a.k.a. beep sound. I want to detect cases where it does not generate. IS there any way to verify with applescript if the beep sound plays at all?
I mean I hear it, but I want it logged as beep sound played/not played.
any ideas are welcome!

You need to generalize the problem to how do you detect an error in another application.
Typically, aplications will return an error code when they find an error.  This will cause an excpetion in your applescript app. To detect the error you put the call in a try block.
So what program are you calling?
Did you wrie the other app?  If so, return a non-zero error code.
Robert

Similar Messages

  • What is the risk, and how to detect, Trojan infection with Flashback/Flashfake? (PowerMac G5 OS X 10.5.8)

    What is the risk, and how to detect, Trojan infection with Flashback/Flashfake? (PowerMac G5 OS X 10.5.8)

    Hey Kappy, without even looking I can tell you anything is better than the GeForce4MX cards, but see
    See japamacs page here on the best AGP cards for G4s & G5s...
    http://www.jcsenterprises.com/Japamacs_Page/Blog/4B4B7BA2-7ABB-47F1-87AC-B03D379 42BEE.html
    Rated slowest on top, fastest on bottom, hopefully japamac will drop in shortly.
    Oh, & they need way more RAM...
    http://www.everymac.com/systems/apple/powermac_g4/specs/powermac_g4_933_qs.html
    http://eshop.macsales.com/MyOWC/Upgrades.cfm?sort=pop&model=155&type=Memory

  • How to turn beep sound on phone keyboard/numbers off

    How do i turn the beep noise off when dialing a number, ive never noticed it before and suddenly out of the blue it makes a beep sound when i dial a number.

    Go to Settings>Sounds and at the bottom there should be an option for keyboard clicks. If that's on, turn it off and you should be good to go.

  • How to produce beep sound from sap program?

    Hello all,
    Can anybody help me to produce beep sound from sap program.
    I dont want to play a WAV file.
    I just want to produce a BEEP sound.
    Your help is highly appreciated.
    Thanks n Regards
    chandu

    Hi
    Thanks for the quick response.
    I tried the code in ur reply.
    Its not producing any beep sound.
    type-pools: ole2.
    data: return type i,
    sapinfo type ole2_object.
    data: begin of command,
    command(12) type c value 'cmd /c echo ',
    hex07(1) type x value '07',
    end of command.
    create object sapinfo 'SAPINFO' no flush.
    call method of sapinfo 'EXEC' = return
    exporting
    #1 = command
    #2 = 0.
    free sapinfo.
    Is there anyother way??
    Thanks

  • How To avoid beep sound

    Hi,
    In one of my forms, when I navigate from one particular field to the next, i'm getting 'beep' sound. I have not used the built-in 'Bell' anywhere. This is happening only for one field. This form is developed in forms 6i. Please help me.
    Thanks
    Jayasri.

    This usually means there is an error. Look in the status bar at the bottom of the window for the error.
    You need to make sure you have the console window (a module property) pointing to a window that can display the status bar. So if you set it to NULL, then the errors can't be displayed and you get the beep.
    Regards,
    Robin Zimmermann
    Forms Product Management

  • How to right-click, open with, applescript

    how would I modify the following code in such a way that I can run it from the right click of a folder and choose 'open with' and select my script/application? I want to run the script from the folder rather than having to run the script and select the folder.  I want to use open with because programs like Path Finder and Fork  Lift do not show the services submenu.
    set this_folder to (choose folder with prompt "Pick the folder containing the images to process:") as string
    tell application "System Events"
        set these_files to every file of folder this_folder whose name does not start with "." and (file type is "TIFF" or file type is "JPEG" or name extension is "tiff" or name extension is "tif" or name extension is "jpeg" or name extension is "jpg")
    end tell
    repeat with i from 1 to the count of these_files
        set this_file to (item i of these_files as alias)
    end repeat

    the easiest way to do this might be two convert this to an automator service - open automator, choose Service, tell it to receive the selected folder(s) in the Finder, then add a Run Applescript action.  You'll need to modify the script slightly:
    on run {input, parameters}
              repeat with each_item in input
                        tell application "System Events"
                                  set these_files to (every file of folder each_item whose name does not start with "." and (file type is "TIFF" or file type is "JPEG" or name extension is "tiff" or name extension is "tif" or name extension is "jpeg" or name extension is "jpg"))
                        end tell
                        repeat with i from 1 to the count of these_files
                                  set this_file to (item i of these_files as alias)
                        end repeat
              end repeat
              return input
    end run
    but after you've saved it you can access it from the Services submenu of the contextual menu

  • How to open notification center with Applescript?

    Hi, I want to create an AppleScript file that open the Notification Center when I use a gesture with MagicPrefs. How can I do it?

    Hello,
    if you want you can use a tierce app to add gesture to your Magic Mouse. For me it's BetterTouchTool, it's free and easy to use.
    bye

  • Weird beeping sound with audio

    I am editing a movie for a class in college. I uploaded my audio which is an mp3 file and it play fine when I play it in the first viewer window, but when I play it in the play back window instead of sound its a weird loud beeping noise. if I take the slider and move it forward or back on the timeline it will play the music faster or slower...but if I push play it still has the sound...what's going on and how can I stop it! ASAP!!!!!

    Hi - Click on the audio clip in the timeline to select it and type Command-R.
    This will render the audio to match the sequence setting.
    If you move or edit the audio track, you might have to render it again.
    Hope this helps.

  • How to output surround sound with airport express N

    is this possible? I am streaming successfully with airport express, sounds great with no audio dropouts. I have it hardwired to my router and the AX is connected optical to my surround receiver. Music is only played through my fronts. Is there a way to output surround sound? I can't even choose different audio options through my A/V receiver.

    I Found out the problem. When I was hooking everything up, I kept the t.v. on so I can assign audio inputs with the onscreen display. If the T.V. is left on....only stereo outputted. When I turned the t.v. off and with the airport express plugged into AUX, I was able to switch between surround sound settings.
    so the moral of the story is, turn off video devices when you just want sound, especially if they are hooked up to the AVR with HDMI.

  • How to play analog sound with PC input

    Hello,
    I have connected a pc to the pc input (VGA sub D15) in my TV 46TL933. I am looking to connect the analog audio output from the pc into the TV. I already tried to connect the audio signal to the component input, but the tv doesn't listen that input when switched to pc input. How to play sound from pc on the 46TL933 TV ?
    Thank you in advance for everyone who helps me.
    Kind regards
    John

    That doesn't appear to be a US model, and this is the forums for Toshiba USA. You may want to contact Toshiba in your region.
    - Peter

  • How to Play Stereo sound with the MIDI API

    Hi!
    I wanna know how can I make and application like the FL Studio's Piano Roll using the java sound midi API.
    How can I convert this MIDI sequence to a stereo sound.
    Thank's a lot for your answers

    http://java.sun.com/j2se/1.5.0/docs/guide/sound/programmer_guide/contents.html
    http://java.sun.com/products/java-media/sound/index.jsp
    http://java.sun.com/products/java-media/sound/list.html
    lutha

  • How do you record sound with Apple headphones Mac Pro?

    (2008 Mac Pro)  I'm trying to record a voice over on iMovie, and it won't record sound no matter what option I use for the sound input.  I'm plugging my apple headphones into the headphone jack like I do on my MacBook (which works).  I know  that the Macbook has an in/out in one jack, but is it not the same for the Mac Pro?  I've tried sticking the headphones in the back audio out where I can plug my stereo in and it wont even plug in.  Also I know its not iMovie because Quicktime doesn't work with audio recording either.

    The Mac Pro is not compatible with analog microphones.  Its headphone jack is for output only.  It does not work with headset microphones.  Its audio in jack is line-level, so would need a pre-amp to work with most microphones.
    The simplest solution is a USB headset or microphone.
    <http://store.apple.com/us/browse/home/shop_mac/mac_accessories/music_creation>

  • How to run daily checkup with applescript

    hello, i heard that macs run a script late at night for something between 2 and 5 in the morning. but my computer is asleep so those scripts don't run. so i run them manually through terminal. i was curious to know if there is a way in applescript or automator to run them daily so i don't have to?
    thx

    Kappy's Personal Suggestions for OS X Maintenance
    For disk repairs use Disk Utility. For situations DU cannot handle the best third-party utilities are: Disk Warrior; DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.0 is now Intel Mac compatible. TechTool Pro provides additional repair options including file repair and recovery, system diagnostics, and disk defragmentation. TechTool Pro 4.5.2 is Intel Mac compatible; Drive Genius is similar to TechTool Pro in terms of the various repair services provided. The current version, 1.5.1, is Intel Mac compatible.
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.
    OS X automatically defrags files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive. As for virus protection there are few if any such animals affecting OS X. You can protect the computer easily using the freeware Open Source virus protection software ClamXAV. Personally I would avoid most commercial anti-virus software because of their potential for causing problems.
    I would also recommend downloading the shareware utility TinkerTool System that you can use for periodic maintenance such as removing old logfiles and archives, clearing caches, etc.
    For emergency repairs install the freeware utility Applejack. If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the commandline.
    When you install any new system software or updates be sure to repair the hard drive and permissions beforehand. I also recommend booting into safe mode before doing system software updates.
    Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
    1. Retrospect Desktop (Commercial - not yet universal binary)
    2. Synchronize! Pro X (Commercial)
    3. Synk (Backup, Standard, or Pro)
    4. Deja Vu (Shareware)
    5. PsynchX 2.1.1 and RsyncX 2.1 (Freeware)
    6. Carbon Copy Cloner (Freeware - 3.0 is a Universal Binary)
    7. SuperDuper! (Commercial)
    The following utilities can also be used for backup, but cannot create bootable clones:
    1. Backup (requires a .Mac account with Apple both to get the software and to use it.)
    2. Toast
    3. Impression
    4. arRSync
    Apple's Backup is a full backup tool capable of also backing up across multiple media such as CD/DVD. However, it cannot create bootable backups. It is primarily an "archiving" utility as are the other two.
    Impression and Toast are disk image based backups, only. Particularly useful if you need to backup to CD/DVD across multiple media.
    Visit The XLab FAQs and read the FAQs on maintenance, optimization, virus protection, and backup and restore.
    Additional suggestions will be found in Mac Maintenance Quick Assist.
    Referenced software can be found at www.versiontracker.com and www.macupdate.com.

  • How to detect another phone with 5m

    Dear all,
    I world like to know if it s possible to develop à small app which Will be install on iPhone or iPad.
    I would like that the phone ring or vibrate if another phone has the app installed as well. The second iPhone should be at 5-10 meter of the first iPhone.
    For more detail. If the iphone1 has the soft install, the owner will have to enter its user I'd and then the soft will import the user's pseudo, it birthday year and if the user is a man or a woman. Same for iphone2.
    If I have the iphone1 and i am at 5-10meter of iphone2 (or and android phone), my phone vibrate and I got the pseudo, birthday date of iphone2. I also will have a button like to go to a web application with in parameter, the iPhone 2 pseudo.
    The web site will provide me some basic information of iphone2, stored in a database
    Do you have a idea about the difficulty of my need to develop that iPhone application? Which budget?
    Many thank for you advise
    Cheers

    Hi !
    I have seen the mobile communication project .
    You have to stude the C# language through this language you r able to do project all the necessary information , methods , are available in this C# language.

  • How to open alias files with applescript in Powerpoint?

    I would like to do something like this:
    set F to choose folder
    tell application "Finder" to set P to (files of entire contents of F whose name extension is "ppt")
    repeat with oneFile in P
              tell application "Microsoft PowerPoint"
      activate
                        open (oneFile as alias)
              end tell
    end  tell
    It works fine if all files are regular files.
    But I want/need it to work also, if some of the files are aliases (icon has the little pointer in Finder).
    Could some kind soul explain to me what I would have to do?
    TIA.
    Gabriel.

    Are you saying this doesn't work? Generally applications don't/shouldn't care about whether you pass them an actual file or an alias.
    In either case, it's not hard to dereference the alias back to the original file:
    set F to choose folder
    tell application "Finder" to set P to (files of entire contents of F whose name extension is "ppt")
    repeat with oneFile in P
              if class of oneFile is alias file then
                        tell application "Finder" to set oneFile to (original item of oneFile)
              end if
      open oneFile
    end repeat
    Note that I've just specified 'open oneFile' rather than targetting PowerPoint directly - there's no need to target PowerPoint if it's the default application for .ppt files. However, there's no problem telling PowerPoint to open the file if you prefer.

Maybe you are looking for