Jump to content

How to put a browse pulldown for a box to hold a target filepath?


Recommended Posts

I hope I can explain this without confusing things too much, I have a new script I created which I can dump a filepath into and then AI populates a search utility with that path.  But I'm finding that it would be much more helpful if there were a browse button beside that button so that I could choose instead to travel to the folder via AI itself rather than do it through Windows Explorer and copying the path and then coming back to the script and dumping it there.

But I've come to realize that I've never done this before and my googles search aren't turning up relevant AI help in this regard, probably (I'm guessing) because I don't know what to call what I'm trying to do.  Guess it's one of those things everyone knows about so much that it's not mentioned (everyone but me knows about ... <g>).

What is this called when you add a button to navigate Windows Explorer that then takes the folder you select?

Thank you!!

Edited by Diana (Cda)
Link to comment
Share on other sites

Hi Diana (Cda),

I expect what JohnOne suggested is exactly what you want.

I am a little surprised that you've never come across this, as you've made quite a few posts here.

I know it can happen though, well remembering my experience when looking for Titlecase many years ago, which turned out to be _Propercase, which some kindly persons told me here at the forum. I've never asked many questions here, but that was one of them. I believe they modified references in the Help file after that, if I remember correctly, because I had found StringUpper and StringLower, but neither had a reference to _Propercase.

Anyway, to get to the point.

I heartily recommend to you and others, that you regularly browse the Help file, like some do the Dictionary, which is far more boring.

It can be quite interesting to do this, and you can be quite surprised at what you discover, I still am all these years later.

Even if you just quickly go through all the function names, and perhaps look at those that intrigue you etc.

A quick browse of the function names in the File, Directory and Disk Management section of the Function Reference section of the Help file, should have turned up FileSelectFolder for you.

Edited by TheSaint

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...