Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Application

Application interface

Interface to open and close applications

param name:

Application name, might be a single execute or a whole path. Note: if the application path and / or name has whitespaces in it one needs to escape them properly. See example below.

example

Creating an Application instance

const calc = new Application("gnome-calculator");

Pass arguments to application

const example = new Application("/path/to/my/application --param1 --param2 param3");

Pass arguments to application containing whitespaces

const example = new Application("/path\\ with\\ whitespaces/application\\ name --param1 --param2 param3");

Hierarchy

  • Application

Index

Methods

  • focusWindow(windowNumber: number): Promise<Application>
  • getName(): string
  • getRegionForWindow(windowNumber: number): Promise<Region>