Im make an applescript for application called. But i have a problem with exception :(
Sorry, but "You need at least 10 reputation to post images."
- https://i.ibb.co/ZMgZ5Tb/Screen-Shot-2019-04-02-at-10-22-29.png
- https://i.ibb.co/6sGyNjx/Screen-Shot-2019-04-02-at-10-22-41.png
Where is my problem?
tell application "System Events" to tell process "EndpointConnect"
tell menu bar item 1 of menu bar 2
click
click menu item "Disconnect" of menu 1
end tell
end tell
Actual result is:
error "System Events got an error: Can’t get menu 1 of menu bar item 1 of menu bar 2 of process \"EndpointConnect\". Invalid index." number -1719 from menu 1 of menu bar item 1 of menu bar 2 of process "EndpointConnect"