Documentation Index
Fetch the complete documentation index at: https://docs.simular.ai/llms.txt
Use this file to discover all available pages before exploring further.
Class: App
Defined in: index.d.ts:190 Represents an application that can be opened.Constructors
Constructor
new App(): App
Returns
App
Accessors
canonicalName
Get Signature
get canonicalName():Defined in: index.d.ts:194 Returns the canonical app name used for fuzzy matching.string|null
Returns
string | null
launchTarget
Get Signature
get launchTarget():Defined in: index.d.ts:196 Returns the launch target used to open the app (name or path).string|null
Returns
string | null
Methods
open()
open(Defined in: index.d.ts:217 Opens or switches to an application. If a URL is provided, the URL is opened with the specified app.url,focusPolicy,visibility,waitForLoadComplete):Instance
focus_policy controls whether the app is allowed to become
active/frontmost. Some applications (e.g. Chrome, Notes) ignore this
request and steal focus regardless.
visibility controls whether the app is launched hidden or shown.
Some applications (e.g. Chrome and other Chromium/Electron apps) ignore
the hidden flag and launch visibly, potentially stealing focus. In that
case the app is hidden explicitly after launch.
When wait_for_load_complete is true, this blocks for a short, fixed
delay to allow the app or URL to become responsive before returning.
Parameters
url
string | null | undefined
focusPolicy
FocusPolicy
visibility
Visibility
waitForLoadComplete
boolean
Returns
Instance
defaultBrowser()
Defined in: index.d.ts:198 Returns a handle to the system’s default browser.staticdefaultBrowser():App
Returns
App
exactName()
Defined in: index.d.ts:192 Get the app by exact name. No fuzzy search is performed.staticexactName(name):App
Parameters
name
string
Returns
App
exists()
Defined in: index.d.ts:200 Checks if the app exists.staticexists(app):boolean
Parameters
app
string
Returns
boolean
