Lingo Dictionary > L-N > name (cast property)

 

name (cast property)

Syntax

castLib (whichCast).name
the name of castLib whichCast

Description

Cast member property; returns the name of the specified cast.

This property can be tested and set.

Example

This code iterates through all the castLibs in a movie and displays their names in the Message window:

totalCastLibs = the number of castLibs
	repeat with currentCastLib = 1 to totalCastLibs
		put "Castlib"&&currentCastLib&&"is named"&&castLib(currentCastLib).name
	end repeat

See also

&& (concatenator)