Skip to main content
jeffreyw24183857
Participating Frequently
November 30, 2015
Question

LrShutdownApp example

  • November 30, 2015
  • 1 reply
  • 1344 views

Hi,

I am looking for an short example how to use LrShutdownApp in a lua script.

Google can not find so I was wondering if somebody might have a short example.

I want to use the LrShell.openFilesInCommandLineProcess function in this script.

regards,

Jeffrey

This is a repost from:

https://forums.adobe.com/inbox?objectType=2&objectID=8230629

This topic has been closed for replies.

1 reply

jeffreyw24183857
Participating Frequently
December 1, 2015

adding LrShutdownApp = { LrShutdownFunction = 'ShutDownApp.lua' }

to the info.lua seems to be working better.

anyone got an idea?

johnrellis
Legend
December 1, 2015

Have you read page 29 of the Lightroom SDK 6 Programmers Guide?  I haven't used Lr ShutdownApp, but page 29 seems pretty clear about how to use it.  

jeffreyw24183857
Participating Frequently
December 2, 2015

Dear John,

Thank you for your reply.

Yes I have read these pages, that is how I know that the lrShutdownApp function exists.

Googling on it gives me only SDKs. (and my question on this form)

I have tried and search the sdk for examples how to configure the called upon lua file.

the search keys "parameters" / "two" etc came up with no other function in the sdk ,I could use to see how I have to use this.

I am in the process of understanding lua, so an example would clear it up a lot for me.

Would you be so kind to write down a couple of example lines of how I need to configure the info.lua and the ShutDownApp.lua in my case?

Reference to one of the SDK example files and function to look at works for me as well.

Thank you in advance.