get_front() get_front() : array Gets the frontmost window name and application Returns array — an array with the front application name and window name
activate() activate(string $application) Brings an application to the front, opening it if necessary Parameters string $application the name of the application
bring_to_front() bring_to_front(string $process) Brings an application to the front, but only if it is open Parameters string $process name of application
exec() exec(string $script) : mixed Executes some AppleScript code Parameters string $script the script to execute Returns mixed — whatever the script returns