Namespace LrApplication

This namespace provides access to the active catalog.

Access the functions directly from the imported namespace.

Summary

Returns the catalog that is currently open in Lightroom.
Returns the current version of the application as a user-displayable string (for instance, "2.0").
Returns the current version of the application as a table that can be parsed.

Functions

LrApplication.activeCatalog()
Returns the catalog that is currently open in Lightroom.

First supported in version 1.3 of the Lightroom SDK.

Return value

An LrCatalog object.

See also

LrCatalog
LrApplication.versionString()
Returns the current version of the application as a user-displayable string (for instance, "2.0").

First supported in version 2.0 of the Lightroom SDK.

Return value

(string) Lightroom version
LrApplication.versionTable()
Returns the current version of the application as a table that can be parsed.

First supported in version 2.0 of the Lightroom SDK.

Return value

(table) Lightroom version. Contains the following members. (The examples below are for the fictitious Lightroom version 2.1.4.)
  • major: (number) major version number (i.e. 2)
  • minor: (number) minor version number (i.e. 1)
  • revision: (number) revision to that release (i.e. 4)
  • build: (number) build number (usually a six-digit number)