OK, I am having some problems with my BT device right now, so I was not able
to get everything here.
The below script will
a) toggle the bluetooth on / off
b) select the first item in the list of bluetooth devices
If you do a little playing with
get "UI Elements"
get actions of Checkbox
get properties of UI Elements you could probably get this to do what you
want...
tell application "System Preferences"
set bt to anchor "Main" of pane "com.apple.preferences.Bluetooth"
reveal bt
activate
end tell
tell application "System Events"
tell process "System Preferences"
tell window "BLuetooth"
tell checkbox "On" to perform action "AXPress"
select row 1 of table 1 of scroll area 2 of group 1
end tell
end tell
end tell
Jonathan C. Cohn
[email protected]
On May 11, 2011, at 12:07 PM, Mark BurningHawk Baxter wrote:
> Can I write a script which will turn on, with one press of a key, a Bluetooth
> headset-type device? Can I use VO's Keyboard Commander to do this, or to
> launch a script to do this? Thanks for any ideas on how to cut down the
> number of keystrokes I currently use to do this.
>
>
> • Mark BurningHawk Baxter
> • AIM, Skype and Twitter: BurningHawk1969
> • MSN: [email protected]
> • My home page:
> • http://MarkBurningHawk.net/
>
> --
> You received this message because you are subscribed to the Google Groups
> "MacVisionaries" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/macvisionaries?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"MacVisionaries" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/macvisionaries?hl=en.