# The following example closes a window at path "Main Windows/Overview" in the primary desktop,
# regardless of where the script originates from.
# Attempts to swap to a window at path "Main Windows/Main Window" on a specific desktop.
# This example assumes a desktop with the handle "2nd Desktop" is already open.
system.nav.desktop("2nd Desktop").swapTo("Main Windows/Main Window")