I’d personally just add the sound effect after you end the tell, that way 
you’re not waiting on system preferences to close but the sound alerts you to 
when bluetooth has been toggled.
> On Apr 22, 2015, at 9:22 AM, Traci Duncan <our4p...@gmail.com> wrote:
> 
> Hi all, I’ve needed to update my toggle bluetooth script & thankfully I found 
> one on the web.  My question is, in the below script, where would I add in a 
> sound effect?  Beep 3, something like that.
> tell application "System Preferences"
>       reveal pane "com.apple.preferences.Bluetooth"
> end tell
> tell application "System Events" to tell process "System Preferences"
>       click button 6 of window 1
> end tell
> quit application "System Preferences"
> 
> Thanks,
> Traci
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "MacVisionaries" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to macvisionaries+unsubscr...@googlegroups.com 
> <mailto:macvisionaries+unsubscr...@googlegroups.com>.
> To post to this group, send email to macvisionaries@googlegroups.com 
> <mailto:macvisionaries@googlegroups.com>.
> Visit this group at http://groups.google.com/group/macvisionaries 
> <http://groups.google.com/group/macvisionaries>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"MacVisionaries" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to macvisionaries+unsubscr...@googlegroups.com.
To post to this group, send email to macvisionaries@googlegroups.com.
Visit this group at http://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.

Reply via email to