Copy link to clipboard
Copied
Hello,
I am wondering how to change the sync settings of a LrCollection via Lua. I want to create new collections and then want to have them automatically synced with Lightroom Mobile.
Thank you in advance for your help and best regards
Gerhard
The SDK API doesn't provide that capability, unfortunately. Adobe stopped investing much effort in the SDK many years ago.
The best you can do for this is use a keystroke-stuffing utility (e.g. AutoHotkey on Windows), which is fragile and difficult to make robust.
Copy link to clipboard
Copied
The SDK API doesn't provide that capability, unfortunately. Adobe stopped investing much effort in the SDK many years ago.
The best you can do for this is use a keystroke-stuffing utility (e.g. AutoHotkey on Windows), which is fragile and difficult to make robust.
Copy link to clipboard
Copied
Dear John, I thought so. I got a workaround and the good thing is that the setting stays even though you update the collection. Thank you and best regards Gerhard
Copy link to clipboard
Copied
Copy link to clipboard
Copied
"I’m trying to do something very similar and running into significant roadblocks. Also is it possible to identify the available keys & functions within the LrCollection class?"
Could you provide detaiils about what you want to do?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
"I’m trying to create collections via a plugin & then have them auto sync to Lightroom Mobile so that I can see those collections on my iPad."
While the SDK lets a plugin create and modify collections, there is no way to set their "sync" attribute. As I mentioned above, you can try a keystroke-stuffing utility (e.g. AutoHotkey on Windows), but that is fragile and very difficult to make robust.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
You can use Applescript to send keystrokes to an app:
https://eastmanreference.com/how-to-automate-your-keyboard-in-mac-os-x-with-applescript
Copy link to clipboard
Copied
"the best way to identify the keys and functions within the LR Classes?"
The SDK includes reference documentation, including all modules and classes:
https://console.adobe.io/downloads/lr
See the "API Reference" subfolder. Or are you wanting something else?
Copy link to clipboard
Copied