Hello script writers!
Often a script should be executed on a list of files and therefore it would be helpful to have a function which creates such a file list. Then one file after the other can be opened, modified, saved and closed until all files in the list have been processed. Here is the function to get such a file list.
If you want to report mistakes or have suggestions for further enhancements post a message here.
The script file GetListOfFiles.js with the code can be viewed or downloaded from the Macros & Scripts page. The script file was last updated on 2018-06-24.
Important!
Users of UltraEdit / UEStudio not using the English version have to adapt two strings at the beginning of the function to their localized version of UE/UES. See the comments at top of the script or above the two string variables sSummaryInfo and sResultsDocTitle for details.
And users of UltraEdit for Windows < v24.00 or UEStudio < v17.00 should change the value of variable bNoUnicode to value true at top of function.
The attached image GetListOfFiles_Configuration.png shows even more detailed how the two string variables sSummaryInfo and sResultsDocTitle inside function GetListOfFiles must be configured by the user according to language of used UltraEdit/UEStudio and user's configuration for find summary. This image shows four typical configurations:
Often a script should be executed on a list of files and therefore it would be helpful to have a function which creates such a file list. Then one file after the other can be opened, modified, saved and closed until all files in the list have been processed. Here is the function to get such a file list.
If you want to report mistakes or have suggestions for further enhancements post a message here.
The script file GetListOfFiles.js with the code can be viewed or downloaded from the Macros & Scripts page. The script file was last updated on 2018-06-24.
Important!
Users of UltraEdit / UEStudio not using the English version have to adapt two strings at the beginning of the function to their localized version of UE/UES. See the comments at top of the script or above the two string variables sSummaryInfo and sResultsDocTitle for details.
And users of UltraEdit for Windows < v24.00 or UEStudio < v17.00 should change the value of variable bNoUnicode to value true at top of function.
The attached image GetListOfFiles_Configuration.png shows even more detailed how the two string variables sSummaryInfo and sResultsDocTitle inside function GetListOfFiles must be configured by the user according to language of used UltraEdit/UEStudio and user's configuration for find summary. This image shows four typical configurations:
- English UltraEdit is used with default configuration for find summary.
- English UltraEdit is used with find summary not used at all.
- English UltraEdit is used with beginning of find summary text modified by the user in configuration.
- German UltraEdit is used with default configuration for find summary.
- Examples for sSummaryInfo and sResultsDocTitle depending on language of UE/UES and user's find summary configuration.
ArpadSzilagyi likes this post