I've created a plugin to monitor a collection and watch for specific changes. It uses an AsyncTask to do this. It works fine as long as I start the script using an Export menu item. However I'd prefer if the task start automatically when Lightroom starts. I've tried adding a line in my Init.lua with LrInitPlugin pointing to the script, but it doesn't seem to do anything (I have a logging that will show when it starts). How can I accomplish this?
In LR 3, you needed to define a dummy metadata field to force the LrInitPlugin script to run at LR startup. But according to the "Lightroom SDK 6 Programmer's Guide", you can now force the script to be run using LrForceInitPlugin:
I've used the dummy metadata field in several plugins, but haven't tried this.