ApplesauceOS
Read Markdown ↗Download .md
JavaScript reference

Find the function.
Understand the result.

198 entries, grouped by task. Every page has a signature, arguments, return value and a short example. Use the search in the navigation to find a function or alias.

Examples with com.example.app or sample element identifiers must be adapted after inspecting your app. Start with selectors and waits for UI automation. Markdown index ↗

Apps

Touches and keyboard

Timing and runtime

  • usleep

    Pause the script for a fixed duration.

  • msleep

    Pause the script for a fixed duration.

  • sleep

    Pause the script for a fixed duration.

  • stop

    Request cancellation of the current script.

  • setSpeed

    Store a playback speed preference.

Device and feedback

Shell and system

  • execResult

    Run a shell command and inspect its outcome.

  • exec

    Run a shell command and return combined output.

  • execAsRoot

    Run a command as root.

  • isVpnActive

    Check whether a VPN appears active.

  • enableVPN

    Request activation of the existing VPN configuration.

  • disableVPN

    Request VPN disconnection.

Files and encoding

Screen and vision

UIHelper queries

Element actions

Modules and async

HTTP requests

Objective-C

Native C functions