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

  • 1
  • Question
  • Updated 6 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
  • 372 Reply Likes

Posted 6 years ago

  • 1
Photo of jdv

jdv, Champion

  • 728 Posts
  • 55 Reply Likes
/Applications/Adobe Photoshop Lightroom 4.app/Contents/MacOS/Adobe 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
  • 372 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

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

open

For example:

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