Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

LR SDK: Catalog remove photo or Catalog new

New Here ,
Jan 08, 2011 Jan 08, 2011

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

TOPICS
SDK
967
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 08, 2011 Jan 08, 2011
LATEST

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:

http://www.assembla.com/wiki/show/lrdevplugin

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines