Re: Any idea why this script stopped working when I upgraded to Big Sur?
Re: Any idea why this script stopped working when I upgraded to Big Sur?
- Subject: Re: Any idea why this script stopped working when I upgraded to Big Sur?
- From: Yvan KOENIG via AppleScript-Users <email@hidden>
- Date: Sat, 13 Feb 2021 16:20:50 +0100
There is a typo in the passed code but I guess that it's not in the true one.
Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) samedi 13
février 2021 16:20:19
> Le 13 févr. 2021 à 01:23, Jim Krenz via AppleScript-Users
> <email@hidden> a écrit :
>
> Hello all,
>
> This script was working before I upgraded to BigSur.
>
> Any ideas on how to fix it?
>
> Is there a AppleScript dictionary for menu bar items?
>
> tell application "System Events" to tell process "SystemUIServer"
> set bt to (first menu bar item whose description is "bluetooth") of
> menu bar 1
> click bt
> tell (first menu item whose title contains “AirPods") of menu of bt
> click
> tell menu 1
> if exists menu item "Connect" then
> click menu item "Connect"
> say "Connected"
> else
> click menu item "Disconnect"
> say "Disconnecting"
> end if
> end tell
> end tell
> end tell
> _______________________________________________
> 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
_______________________________________________
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