Lightroom SDK: How to do plugin initiated restart of Lightroom on Mac.

  • 1
  • Question
  • Updated 7 years ago
On Windows, it's

lightroom.exe -restart "full_path_to_catalog.lrcat"

Is there a Mac-compatible equivalent?

Note: this would be useful for cross-catalog plugins, or plugins that change things that will only take effect upon restart...
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 386 Reply Likes

Posted 7 years ago

  • 1
Photo of jdv

jdv, Champion

  • 728 Posts
  • 56 Reply Likes
/Applications/Adobe Photoshop Lightroom Photoshop Lightroom 4 is the (somewhat) equivalent executable, but I don't know what opts it takes, if any.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 386 Reply Likes
Thanks John,

That allows the Lightroom app to be run, but there are still some issues with options and/or catalog reference.

excerpt from Matt Dawson in SDK forum:

"...on the Mac they use a different argument/catalog identifier (not file path) I couldn't decipher to indicate the new catalog to be opened. I had been planning to use this technique to turn my script into a plugin but the platform specific nature of the trick made this a non-starter for me."
Photo of John R. Ellis

John R. Ellis, Champion

  • 4056 Posts
  • 1069 Reply Likes
On Mac, this appears to relaunch LR with the specificed catalog:


For example:

open /Users/John/Pictures/Lightroom/mycatalog/mycatalog.lrcat