Jump to content

contents of a folder as drop down menu in text area


Sundaram Sridharan

Recommended Posts

I need to read the files in a windows folder and offer them as items in a drop down menu. so far I have

import os

myFolder = "\serverfolder"

list = []

for file in os.listdir(myFolder):

list.append(file)

I now need to somehow assign this to a listbox document property so it will appear as pull down menu. I can trigger this script using a simple data function. But when I create a listbox (multi select) document property and try to assign this list to that property it doesn't change anything in the text area. However if I choose file-document properties, I see the above list assigned to the document property. Is there another way to do this

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...