Since I am new to scripting, I just copied a script from a previous discussion (https://community.jmp.com/t5/Discussions/Batch-processing-files-to-extract-data-into-a-summary-table/m-p/529021) and slimmed it to the stuff I need - only the pdf file names.
Names Default to Here( 1 );
//point to file directory
path = Pick Directory( "Select Directory Containing Data Files" );
//Gets the list of files in the selected file folder
file_list = Files In Directory( path );
// Create beginnings of output data table
dtFinal = New Table( "Final", New Column( "File Name", Character ));
//i=0;open file
nfile_list = N Items( file_list );
For( i = 1, i <= nfile_list, i += 1,
//Set Current Directory( dir_DirectoryPath );
dt = Open( path || file_list[i], );
// Add information to Final data table
dtFinal << add rows( 1 );
dtFinal:File Name[N Rows( dtFinal )] = file_list[i];
);
Unfortunately, I have about 750 pdf files which all open while running the script.
Does anybody know how to automatically close the pdf files?
Thanks a heap for your help