- Posted by
- I recommend to use the function GetListOfFiles in a script like: // Include the function GetListOfFiles() here without the code demonstrating the usage. // Replace the initial directory path in the function parameter list with // real path of the directory containing the files to modify by the scrip...Posted in Scripts
-   Topics
-   Views
- Mofi
Feb 01, 2022
- if (UltraEdit.activeDocument.encoding != 1200) // Is the active file not UTF-16 LE encoded? { // That works for ANSI and UTF-8 encoded files UltraEdit.activeDocument.ASCIIToUnicode(); // despite the string ASCII in function name. } // It does not ...Posted in Scripts
-   Topics
-   Views
- Mofi
Feb 01, 2022
- In a JavaScript string must be escaped each backslash of a Perl regular expression search or replace string executed by the Perl regular expression engine of UltraEdit and not by the JavaScript interpreter itself with one more backslash. So the last line in the function DeleteEmptyLines must be: Ult...Posted in Scripts
-   Topics
-   Views
- Mofi
Sep 28, 2021
- I don't know what variable a is, but look on this code. function XMLConv() { // Define environment for this script. UltraEdit.insertMode(); if (typeof(UltraEdit.columnModeOff) == "function") UltraEdit.columnModeOff(); else if (typeof(UltraEdit.activeDocument.columnModeOff) == "function"...Posted in Scripts
-   Topics
-   Views
- Mofi
Jan 03, 2020
- The main problem is the line var Regex = /<clstep.*?>.*?<\/clstep1>/img; The dot does not match the newline characters carriage return and line-feed. For that reason this JavaScript regular expression object on execution of a procedure block string does not find anything to match. One solution would...Posted in Scripts
-   Topics
-   Views
- Mofi
Jan 03, 2020