talonhub / community

Voice command set for Talon, community-supported.
MIT License
643 stars 783 forks source link

Desktop commands broken on macOS #873

Open wenkokke opened 2 years ago

wenkokke commented 2 years ago

The command window move desktop right fails with the following error message on macOS:

talon.scripting.talon_script.TalonScriptError: 
 in script at /Users/wen/.talon/user/core/desktops/desktops.talon:21:
 > user.window_move_desktop_right()
TypeError: 'Rect' object is not subscriptable

Has something changed in the Rect object API?

knausj85 commented 2 years ago

it should look like this now

fs = win.children.find(AXSubrole="AXFullScreenButton")[0]
rect = fs.AXFrame
x = rect.x + rect.width + 5
y = rect.y + rect.height / 2

Though I don't think that's sufficient to make the functionality work these days