• 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: Can AS change the system beep?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can AS change the system beep?


  • Subject: Re: Can AS change the system beep?
  • From: Philip Aker <email@hidden>
  • Date: Thu, 14 Jun 2007 11:33:23 -0700

On 2007-06-14, at 10:12:39, Tut wrote:

I have been trying to find a way to change the System alert sound (beep) using AppleScript, but have only found discriptions of the use of “beep n”. I am looking for something like: set System beep to “Basso”.

Can it be done?

Yes, you can probably script System Preferences but a more expedient way is to use the shell command "defaults" in a 'do shell script':


do shell script "defaults -currentHost read | grep com.apple.sound.beep"

will get you the current sound preference settings and you should be able to write something like:

do shell script "defaults -currentHost write com.apple.sound.beep.sound '/path/to/sound.aiff'

to set the POSIX path for the new sound.


Philip Aker email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Can AS change the system beep?
      • From: Luther Fuller <email@hidden>
References: 
 >Can AS change the system beep? (From: Tut <email@hidden>)

  • Prev by Date: Re: INDESIGN: Storing Application-Specific Object References Externally
  • Next by Date: Re: [OT] UNIX heads; can I do this?
  • Previous by thread: Can AS change the system beep?
  • Next by thread: Re: Can AS change the system beep?
  • Index(es):
    • Date
    • Thread