Re: Can AS change the system beep?
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