SDK: LrDialogs.runOpenPanel doesn't allow for multiple selection on Windows

  • 2
  • Problem
  • Updated 6 years ago
In LR 3.6/Windows 7, LrDialogs.runOpenPanel() doesn't allow the user to choose mulitple folders when canChooseFiles=false:

---------------------------------------------------------------------
local LrDialogs = import 'LrDialogs'
local folders = LrDialogs.runOpenPanel {title = "Test", canChooseFiles = false,
canChooseDirectories = true, allowsMultipleSelection = true}
LrDialogs.message (#folders .. " folder(s) selected")
---------------------------------------------------------------------

A poor workaround is to set canChooseFiles=true. Two problems with this:

- The client plugin wants just folders, not files.

- LR presents the Windows file dialog in a confusing, non-standard way, with both an Open button and Choose Selected. While Open can be used for files, Choose Selected must be used for folders. I've had users of my plugins get confused by this.
Photo of John R. Ellis

John R. Ellis, Champion

  • 3372 Posts
  • 845 Reply Likes

Posted 6 years ago

  • 2
Photo of John R. Ellis

John R. Ellis, Champion

  • 3372 Posts
  • 845 Reply Likes
This is fixed in LR 4 beta (hurray).