rb.app.front() -> AppInfo? | the frontmost app as { name, pid }, or nil |
rb.app.is_front(name: string) -> boolean | whether the frontmost app’s name contains name |
rb.app.is_running(name: string) -> boolean | whether a matching app runs |
rb.app.is_hidden(name: string) -> boolean | macOS: whether it is hidden; raises on Windows |
rb.app.activate(name: string) -> () | brings a running app forward and raises when none matches; on macOS it shows a hidden app, which a second call brings forward, and restores a window when all are minimized |
rb.app.hide(name: string) -> () | macOS: hides it; raises on Windows |
rb.app.quit(name: string) -> () | asks it to quit; on Windows it closes the app’s windows |