• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Beep broken in 10.1.4?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Beep broken in 10.1.4?


  • Subject: Re: Beep broken in 10.1.4?
  • From: Christopher Nebel <email@hidden>
  • Date: Tue, 23 Apr 2002 12:53:58 -0700

On Tuesday, April 23, 2002, at 10:16 AM, Mr Tea wrote:

Can't make my Mac beep with a script command. Talk yes, beep no. Is it broken?

"beep" is not exactly broken in Mac OS X, but it does have issues. In particular:

1. "beep n" where n > 1 sounds like it only beeps once.
2. If the host application quits immediately after the beep, you probably won't hear it. (This generally only applies to applets and osascript.)

One problem is that "beep" plays the sound asynchronously -- that is, the call returns immediately, and the system plays the sound on a sub-thread while you're doing whatever. This is true even in Mac OS 9, but X is a lot more efficient about it, so multiple beeps will pile on top of each other so closely they sound like one.

The other problem is that sound output channels are considered application resources in Mac OS X and are released when the application terminates, even if they're not done playing. So the application starts to play a beep, then terminates, and the sound gets cut off. If you're lucky, you might hear a little click.

The workaround in either case is to put a little delay after each beep to give it a chance to play. Neither problem applies to "say" because it works synchronously -- the call doesn't return until it's done speaking.


--Chris Nebel
AppleScript Engineering
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Beep broken in 10.1.4?
      • From: Sander Tekelenburg <email@hidden>
References: 
 >Beep broken in 10.1.4? (From: Mr Tea <email@hidden>)

  • Prev by Date: Re: Read file questions ... again!
  • Next by Date: Applescript file extensions
  • Previous by thread: Re: Beep broken in 10.1.4?
  • Next by thread: Re: Beep broken in 10.1.4?
  • Index(es):
    • Date
    • Thread