I would put the beep 3 right after the click. If you don’t have a slight delay, then it might not work.
Are you trying to toggal bluetooth on and off? If so, I think there may be a problem. You might want to change button 6 to button 3. On Apr 22, 2015, at 10:22 AM, Traci Duncan <[email protected]> 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 [email protected] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[email protected]>. 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>. Barry Hadder [email protected] -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/macvisionaries. For more options, visit https://groups.google.com/d/optout.
