File Open Dialog

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
fthomas
Pro Scripter
Posts: 91
Joined: Fri Oct 03, 2008 6:40 pm

File Open Dialog

Post by fthomas » Wed Oct 08, 2008 2:13 pm

I am wondering if there is any way for a script to open it's own file/open dialog box.

Specifically, I would like the script to open a dialog box, allow me to select a directory and then the script would take the selected directory, pick out all the *.txt files within the directory and subdirectories, and allow me to run a grooming script on each .txt file.

Thanks!

Frank

GarryP
Junior Coder
Posts: 27
Joined: Sat Feb 04, 2006 12:01 pm

Post by GarryP » Wed Oct 08, 2008 2:55 pm

Set INPUT_BROWSE
A value of 1 is for selecting files, a value of 2 is for selecting directories



Let>INPUT_BROWSE=2
Input>currentdir,Select desired directory,NONE

fthomas
Pro Scripter
Posts: 91
Joined: Fri Oct 03, 2008 6:40 pm

Post by fthomas » Wed Oct 08, 2008 3:10 pm

Thanks Garry!

That seems easy enough. Here I thought it would be lines and lines of code!

Would GetFileList command allow me to pull all the file names from the inputted directory plus subdirectories?

For example:
C:\top_directory
C:\top_directory\directory_1
C:\top_directory\directory_2
C:\top_directory\directory_2\another_dir



Frank

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts