I am looking over the SDK and forums but cannot find anything....
I am looking for a way to have a plugin close lightroom and open another program. Any ideas? Does the SDK provide a command to close lightroom and I am overlooking it.
The best idea I can come up with is having the plugin communicate with the external app and having that app close lightroom via OS commands. My concern with this approach is I will either have to kill the processes which Lightroom might not like or send keyboard commands to lightroom which always seems like trouble.
Unfortunately, the SDK provides no direct way for a plugin to request LR to exit. But see this thread for how a shell script can ask LR to exit politely: Restarting Lightroom - how to do it *and* have preferences saved (& start up with specified catalog). The plugin can invoke the script with LrTasks.execute (). It's all a little fussy, but I'm sure you can make it work reliably and safely.
Thank You! This looks like the right direction. My biggest concern was gracefully closing the app. I will give this a try.