Da ich neu in der Skripterstellung bin, habe ich gerade ein Skript aus einer früheren Diskussion kopiert ( https://community.jmp.com/t5/Discussions/Batch-processing-files-to-extract-data-into-a-summary-table/mp/529021 ) und habe es auf das reduziert, was ich brauche – nur die Namen der PDF-Dateien.
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];
);
Leider habe ich etwa 750 PDF-Dateien, die sich alle öffnen, während ich das Skript ausführe.
Weiß jemand, wie man die PDF-Dateien automatisch schließt?
Vielen Dank für Ihre Hilfe