GetNewNameData

If a rename script is implemented using the OnGetNewName method, it receives a GetNewNameData object for each item being renamed.
 

Property Name

Return Type

Description

item

object:Item

Returns an Item object representing the file or folder being renamed.

newname

string

Returns the proposed new name of the item. This will be the result of the application of any selected standard options in the rename dialog (numbering, capitalization, etc).

oldname

string

Returns the "old name" pattern as entered by the user in the rename dialog.