/
getCurrentScript
getCurrentScript
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
Name | Flag arguments | Argument type | Exclusive to | Comments |
---|---|---|---|---|
fullPath | 0 | — | — | Gets 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
, multiple selections available,