Greetings Gurus, I'm working on a plugin to manipulate catalogs and in the documentation I only see functions which reference the current catalog. Can a new catalog be created? Also I see the function for adding a photo to a catalog but not removing/deleting a photo. Is this possible in Lua? If I can't create a new catalog I would settle for deleting all photos from the existing catalog. Thanks
Unfortunately, the SDK does not provide methods for creating catalogs or deleting photos from catalogs; unlike other scriptable applications, such as Microsoft Office, there are many, many functions that users can perform that aren't covered by the scripting APIs.
A workaround is to send keystrokes to LR using tools like Autohotkey on Windows or Applescript on Mac. See Rob Cole's plugin framework for details: