Skip to content

ScriptName()

ts
function ScriptName(): string;

Returns the name (short description) of the script currently being executed.

NOTE

The script name is a human-readable label or description assigned to each script in Syncplify Server! for easier identification in the admin interface and logs.

Example

ts
{
  var snam = ScriptName();
  Log("Current script name: " + snam);
  // Useful for logging or debugging which script is running
}

TIP

Script names are set when creating or editing scripts in the Syncplify Server! administration interface. They help you quickly identify scripts in logs and reports.