SplitScript reference / Process / name

Process.name

Method

Process.name() -> String

Returns the configured process name that matched during attachment.

This is the exact candidate written in the state declaration, not a filesystem path. It lets attachment discovery distinguish executable variants without granting file access.

Effects: allocates, requires an attached process

Runtime behavior: available while a process is attached, except in onDetach; synchronous

Examples

Distinguish executable variants

let executable = process.name()