kasper / phoenix

A lightweight macOS window and app manager scriptable with JavaScript
https://kasper.github.io/phoenix/
Other
4.39k stars 128 forks source link

setFullScreen and isFullScreen not working #305

Closed MatthiasGrandl closed 1 year ago

MatthiasGrandl commented 2 years ago

Error: Could not set accessibility attribute “AXFullScreen” with value “0” for element <AXUIElement 0x600000651530> {pid=1664}. (-25202)

Phoenix has accessibility permissions and most other features seem to work.

kasper commented 2 years ago

@MatthiasGrandl Hello! Sorry to hear that, is this for a specific app or for everything?

MatthiasGrandl commented 2 years ago

It seems to be for everything. But honestly I don’t think there is anything wrong with phoenix as plain applescript also does not work.

kasper commented 2 years ago

@MatthiasGrandl Did you try restarting the computer? 😄

kasper commented 1 year ago
    /*! The AXUIElementRef passed to the function is invalid. */
    kAXErrorInvalidUIElement            = -25202,

I checked the error code. It refers to the UI element (window) being invalid. So likely it doesn’t exist anymore, it’s not a window or potentially something else.