Skip to main content
Known Participant
July 25, 2005
Question

Listbox multiselect creation property not working

  • July 25, 2005
  • 3 replies
  • 527 views
I cannot get the listbox creation property "multiselect" to work on a win xp machine. I should be able to either control or shift click to make a multiselect of listbox items, but I can only select one item.

I took a look at the ImportCamera_BR script and noticed that Bob was using the same procedure and this implementation does not work on my computer either. The code Bob uses is:

d.folderPath = folderPathGroup.add( "listbox", undefined, {multiselect:true} );
d.folderPath.preferredSize = [400,100];
...

Is this a known bug or am I doing something wrong?

Rory
This topic has been closed for replies.

3 replies

Known Participant
July 26, 2005
Yeah, I was hoping that wasn't the case. Oh Well...

Bob
Adobe Workflow Scripting
hillrgAuthor
Known Participant
July 26, 2005
Thanks Bob. That did the trick.

Don't forget to fix your code too ;^)

Regards
Rory
Known Participant
July 25, 2005
Rory,

The third argument to create a list box is an optional array of strings that it uses to create items.

To make it work you need to have undefined as the third argument (or pass it an array of strings):

d.folderPath = folderPathGroup.add( "listbox", undefined, undefined, {multiselect:true} );
d.folderPath.preferredSize = [400,100];

Bob
Adobe WAS Scripting