Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Current »

Description

Gets the name of the script currently in the Script Editor, optionally providing the full path.

Functional area

Interface

Command syntax

Syntax

getCurrentScript [-fullPath]

Arguments

None

Flags

NameFlag argumentsArgument typeExclusive toComments
fullPath0Gets the full path for the current script

Return value

string

Examples

//Print the full path of the current script to the log.
string $s = `getCurrentScript –fullPath`;
print $s;

Additional information

Related commands

  • No labels