Scripting - cursorPosition

You must write:

activeWave.cursorPosition()

and not only

cursorPosition()