File script triggers

File script triggers are activated when a file or window is opened or closed, the playback state changes for a media file, or a transaction is committed. See Setting script triggers for a file.

OnFirstWindowOpen

Performs a script each time you open a window of a database file when no other windows for the file are open.

OnLastWindowClose

Performs a script each time you close the last window of a database file.

OnWindowOpen

Performs a script each time you open a window of a database file.

OnWindowClose

Performs a script each time you close a window of a database file.

OnFileAVPlayerChange

Performs a script if the media is playing from a field or URL, and the state of the player changes.

OnWindowTransaction

Performs a script and passes it a JSON object as a script parameter after one or more record changes are successfully committed. The JSON object includes the filename, base table name, record ID, operation, and the contents of a context field for every record operation committed.