- Replies
- Views
- Last post
- Hi. I'm handling with more than 2,500 files, all of them named index.html and each of them inside a folder named as date time format, like this: 20220728004408753 And facing a problem that is hard to find a solution. The only way I believe is using scripts. Is there a way to write a script that coul...Replies: 6 Views: 4.0K
- 6 Replies
- 4.0K Views
- Last post by Gabarito
Jul 29, 2022
- I know there's a script to convert files to UTF-8 but I need a script to convert UTF-8 to UTF-16. Can anyone please assist me on this? Thank you, MaxReplies: 4 Views: 2.9K
- 4 Replies
- 2.9K Views
- Last post by mightymax
Feb 02, 2022
- Hello, I'm using an older programming language called ATLAS and with this language you have to manually add line numbers which can be a daunting task when editing someone else's old code. I've read other posts on this forum about using the Insert Number function but none of them seem to address this...Replies: 7 Views: 27.2K
- 7 Replies
- 27.2K Views
- Last post by Mofi
Jun 21, 2021
- Hello, I often process HTML files with a script using find+replace. There is a need to remove emptiness, replacing \n\s* by \n , but don't do that inside tags <pre> , <code> , <kbd> . There is an effective script on pure Perl: BEGIN{$a=0} $a++ for /<(?:pre|code)>/g; $a-- for /<\/(?:pre|code)>/g; s/...Replies: 4 Views: 13.1K
- 4 Replies
- 13.1K Views
- Last post by iyutr
Apr 19, 2021
- Hallo all I made two scripts using the GetFilePath function, one to insert a header with filepath. I got the insert to run correctly but for the update the backslashes are not written. For comparison here the lines, the first one for the insert and the second one for the update. //Insert Filepath U...Replies: 4 Views: 6.8K
- 4 Replies
- 6.8K Views
- Last post by dummy91
Nov 26, 2020
- Hi there! I'm trying to split a massive text (xyz) file into usable chunks so I can process them into survey software. I am trying to copy by row number (from-to) as I know the size of each chunk that I can deal with. I want to copy from row 0-1048576 to start. Then from row to 1048576-2097152 as th...Replies: 15 Views: 24.4K
- 15 Replies
- 24.4K Views
- Last post by Mofi
Apr 04, 2020
- Hey guys, I'm writing a lot of Kontakt Script Processor code and was thinking about a way to make my job easier. Here's an example of what I have in mind: To create a button on the UI, resize it and reposition it in KSP, you would write something like this: declare ui_switch $Switch $TempID := get_u...Replies: 4 Views: 6.5K
- 4 Replies
- 6.5K Views
- Last post by Glaciac
Jan 28, 2020
- It occurs to me that I am not the first to want to want to split text files by keyword. Is there any solutions floating around out there? I did search the forum but surprisingly found nothing. I have found a tool called TEXTWEDGE off source forge which seems to work so in a sense I have a solution a...Replies: 7 Views: 6.4K
- 7 Replies
- 6.4K Views
- Last post by slouw
Nov 02, 2019
- Hello script writers! Do you miss the Find Select method in the script environment to select a block from current caret position to end of a found string, or to select a block between two strings as you can use it in the macro environment with the command Find Select "..." ? Yes, then look on the fo...Replies: 3 Views: 10.7K
- 3 Replies
- 10.7K Views
- Last post by mightymax
Oct 23, 2019
- Hi brain-trust, I'm trying to create a script that will grab 1000 lines at a time and then use the join function. Then rinse and repeat to the end. I'm really bad at programming so I just thought I'd ask to see if some wonderful person could throw this together for me rather than me beating my head ...Replies: 4 Views: 4.7K
- 4 Replies
- 4.7K Views
- Last post by macinjosh1
Oct 03, 2019
- I have a simple text: Jim John Sue Henry Tom Mike I want - to select some lines (e.g. John - Tom) - define the starting number (e.g. 3280) - define the counting interval (e.g. 2) - define the suffix (e.g. ": ") - press OK and get this result: Jim 3280: John 3282: Sue 3284: Henry 3286: Tom Mike Any k...Replies: 7 Views: 8.4K
- 7 Replies
- 8.4K Views
- Last post by Peter
Aug 02, 2019
- I'm trying to write a script that can handle folder names. I'll explain. I have a lot of HTML files that were saved and are connected with their folders. And I need to process them in a manner that their style files are called by their folders, like this: Current call: <link media="all" href="index....Replies: 10 Views: 8.8K
- 10 Replies
- 8.8K Views
- Last post by Gabarito
Mar 16, 2019
- Hi, I use Windows 10 Home Korean and UEStudio version 18.20.0.18. I read these two articles below thoroughly: UltraEdit script does not run How to create a script from a post in the forum? But I am still having a trouble in executing the script below. UltraEdit.activeDocument.write("Hello World"); H...Replies: 10 Views: 7.0K
- 10 Replies
- 7.0K Views
- Last post by layperson
Feb 20, 2019
- Hi, Is it possible to set the Auto-detect option for encoding of the file(s) that I want to find and replace in? I mean in a script of course? If yes, how? I can't find the script command parameter. Also, can the script file be a UTF-8 file? I want to find and replace special characters, which will ...Replies: 2 Views: 3.6K
- 2 Replies
- 3.6K Views
- Last post by Mofi
Jan 23, 2019
- I've tried to use RunTool in a script file, and it works. But the problem is that UltraEdit is waiting until the "tool" (a Windows application) is closed, even it is configured not to capture any output. For example my script opens a browser, now the message "Cancel Operation" is displayed in front ...Replies: 6 Views: 2.9K
- 6 Replies
- 2.9K Views
- Last post by Mofi
Dec 21, 2018
- ... default to active output window. Supported are registry files / clipboard contents in the formats: ANSI ... REGEDIT4 in first line of *.reg file Unicode ... Windows Registry Editor Version 5.00 in first line of *.reg file Supported are registry values of following types: hex(2) ... REG_EXPAND_SZ ...Replies: 2 Views: 7.2K
- 2 Replies
- 7.2K Views
- Last post by Mofi
Nov 14, 2018
- Sometimes it is necessary to create an UltraEdit macro or script using finds/replaces for ANSI/Unicode strings. ANSI strings are strings consisting of single byte characters with a code value in range 0 to 255 whereby which character is displayed for a value in range 128 ...Replies: 4 Views: 8.4K
- 4 Replies
- 8.4K Views
- Last post by Mofi
Nov 14, 2018
- Hello script writers! As discussed at Selection only returns first character there is currently (see post date) a problem with Unicode files. The workaround posted by in0de using UltraEdit.activeDocument.ASCIIToUnicode(); UltraEdit.activeDocument.unicodeToASCII(); does not work on Windows ...Replies: 2 Views: 10.8K
- 2 Replies
- 10.8K Views
- Last post by Mofi
Nov 14, 2018
- 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 functio...Replies: 6 Views: 13.2K
- 6 Replies
- 13.2K Views
- Last post by Mofi
Nov 14, 2018
- Hi, I want to convert all *.php and *.txt files in a folder from ISO-8859-1 (or 1252 - ANSI Latin1) to UTF-8 except ones that are already UTF-8 encoded. Is there a way to do that with Replace in Files? Thanks.Replies: 8 Views: 21.0K
- 8 Replies
- 21.0K Views
- Last post by Mofi
Nov 14, 2018
- How to find non consecutive duplicate lines in a large file? My file(s) could be rather large, about 60k to 100k lines. I tried it with this regular expression: (?-s)^(.+)\R(?s)(?=.*\R\1\R?) This works fine in Notepad++, but only for a small file. That is the reason why I' looking for something simi...Replies: 11 Views: 8.7K
- 11 Replies
- 8.7K Views
- Last post by patrickdrd
Oct 30, 2018
- Does anyone have a JavaScript on hand that can convert a file from EBCDIC to ASCII? I need to pull files daily from our AS400 and convert them to ASCII before uploading them via FTP to a customer. Also, since I'll have to do this every day, is there a command line option that I can run to automatica...Replies: 4 Views: 4.1K
- 4 Replies
- 4.1K Views
- Last post by jefe1
Aug 13, 2018
- Hi. I have a single line of 1200+ characters. Is it possible for UltraEdit to detect for duplicate characters within this single line? Here's just a sample of the characters. The full line also contains punctuation, symbols etc..: ÔôÖöØøÚúÙùÜüŽžἀἁἂἃἄἅἆἇἈἉἊἋἌἍἎἏἐἑἒἓἔἕἘ To simplify - if the line was s...Replies: 4 Views: 2.0K
- 4 Replies
- 2.0K Views
- Last post by Mofi
May 01, 2018
- I've searched around for a while but haven't (yet) found a solution for replacing, say all German Umlauts in a file with their respective HTML code (number or name). I suppose I could try to write a script, but before I attempt that, I wonder if there isn't some solution for that already...?Replies: 7 Views: 6.7K
- 7 Replies
- 6.7K Views
- Last post by TXWizard
Dec 12, 2017
- I have a folder which contains many xml files. All xml files are in UTF-8 (Unicode-Editing) The xml file structure like given below: <?xml version="1.0" encoding="utf-8"?> <DDD> <DD> <SO_TXT>Sample</SO_TXT> <SO>Sample</SO> <HT>Isabelle Moret</HT> <PG>a3</PG> ...Replies: 3 Views: 3.8K
- 3 Replies
- 3.8K Views
- Last post by Mofi
Sep 16, 2017
- My file contains multiple display equation tags in the form <formula id="dqn1">....</formula> , <formula id="dqn2-6">....</formula>, <formula id="dqn7-8">....</formula>, <formula id="dqn9">....</formula> <formula id="dqn10">....</formula> and cross-reference (link) them with <xref ref-type="d-formul...Replies: 17 Views: 4.7K
- 17 Replies
- 4.7K Views
- Last post by Mofi
Sep 03, 2017
- Hello, To build travel plans, I often need to generate a list of days like this: 03 August 04 August etc. Does UE (20) provide a native tool to generate this kind of text, or maybe some macro/script I could use? Thank you.Replies: 3 Views: 1.6K
- 3 Replies
- 1.6K Views
- Last post by Mofi
Jun 05, 2017
- Hi there! This software is the way for me to achieve the results I need. Unfortunately, the more I read about macros in this forum the less I understand. (I've definitively lost a part of my mind here 8O .) Any help required, thank you in advance for that. My needs: OPEN an existing file (same name,...Replies: 3 Views: 4.0K
- 3 Replies
- 4.0K Views
- Last post by Mofi
Apr 03, 2017
- Hi everyone How to create duplicate list of duplicate id from files? If there is no duplicate id in files, then insert file name in href . Process step by step like: Enter file path (put in message box). Enter file extension (put in message box). Replace in Files href="[^<>\r\n"]*?#([^<>\r\n"]*?)" w...Replies: 6 Views: 2.7K
- 6 Replies
- 2.7K Views
- Last post by Samir
Mar 06, 2017
- I created a script to count the number of characters in a double quoted string and return the value to the user with a messageBox call. // string length calculator var len = 0; var startFound = false; var endFound = false; var msg = "Initial Message"; while (!UltraEdit.activeDocument.isChar('"') && ...Replies: 5 Views: 2.2K
- 5 Replies
- 2.2K Views
- Last post by Bego
Sep 28, 2016
- Hi to all. My input is <a id="toc-intro" href="@@@.html#intro"> <a id="toc-ack" href="@@@.html#ack"> <a id="toc-ch1" href="@@@.html#ch1"> I copy the word after "toc-" like intro and ack . But in the 3rd case I just copy the number after toc- ch . My code with the find is: UltraEdit.perlReOn(); Ultra...Replies: 8 Views: 2.0K
- 8 Replies
- 2.0K Views
- Last post by SouravN
Aug 05, 2016
- Hi everyone, I have a task. Input Head of the Family "Aadi" [most important] Hindu • __'s son Aadinath [The first god] Boy Hindu • __'s son Aaditya [The sun] Boy Hindu • __'s son Aadit [Peak] Boy Hindu Head of the Family "Jhons" [A fiery young man] Christian Head of the Family "Aadil(Adil)" [Justice...Replies: 5 Views: 1.7K
- 5 Replies
- 1.7K Views
- Last post by Samir
Aug 04, 2016
- Dear all, I have some problem in table style alignment. Here are two tables for your reference with HTML tags. Please see table 1 picture with wrong alignment marked, but table 2 have same contents with right alignment which use (EN SPACE) in <td> element. All the table cells should be righ...Replies: 3 Views: 3.8K
- 3 Replies
- 3.8K Views
- Last post by Mofi
Jul 27, 2016
- As a new user I'm still challenged by the many things this tool can do but I've run into a need that I haven't been able to figure out yet. Is it possible to create a script that will take records from file A and copy them to a new file C, but only if a text string matches to a list of values in fil...Replies: 1 Views: 3.6K
- 1 Replies
- 3.6K Views
- Last post by Mofi
Dec 16, 2015
- Binary files like executables often contain (resource) strings encoded in Unicode with UTF-16 LE. But pressing Ctrl+F with having opened a binary file in UE/UES in hex edit mode results in opening a Find dialog where are only the options to either search hexadecimal ...Replies: 0 Views: 2.3K
- 0 Replies
- 2.3K Views
- Last post by Mofi
Dec 12, 2015
- I am using UltraEdit as an external editor of Stata 14. Stata uses UTF-8 encoded text (without BOM) in command files (so called do-files). To send (sections of) command files edited by UltraEdit directly to Stata I am using two AutoIt3 programs ( rundo and rundolines defined as UltraEdit tools) writ...Replies: 3 Views: 5.6K
- 3 Replies
- 5.6K Views
- Last post by Mofi
Jul 03, 2015
- Is there a method to change the current View as File Type from within a script like it can be done manually via View -> View as (Highlighting File Type) ?Replies: 3 Views: 2.7K
- 3 Replies
- 2.7K Views
- Last post by Mofi
Apr 22, 2015
- For me scripts don't work on files with names containing Cyrillic symbols Scenario: Windows 7th SP1 Eng Location Russia Language for non-Unicode Programs - Russia Date/Time format - English (USA) Code page/Locale in UE - 1251 What I tried: Change Location, load in safe mode, load only basic ...Replies: 6 Views: 2.5K
- 6 Replies
- 2.5K Views
- Last post by Ovg
Apr 20, 2015
- I need to include sections of program code in a document, and include the line numbers. I'm sure this must be possible with UE, but I cannot figure out how to do this (I'd like to avoid having to code my own macro). Including screen shots is a potential solution, but it's not elegant. Suggestions ap...Replies: 2 Views: 3.4K
- 2 Replies
- 3.4K Views
- Last post by RobV
Jan 22, 2015
- Hello As the venerable Eudora email client doesn't support UTF-8, I need a solution to easily convert UTF-8-encoded emails to Windows-1252. However, I couldn't get UltraEdit to convert successfully through the File > Conversions option: Either UTF-8 to ASCII is disabled or nothing happens when selec...Replies: 6 Views: 11.0K
- 6 Replies
- 11.0K Views
- Last post by Gabarito
Oct 04, 2014
- Hi guys, here is my align script I was unable to do with UE macro language. Imagine you have (huge) code like this lala = abc lalalalala = def la = ghi baba = jkl asdf sdsdfas and want it to be like this (left align) lala = abc lalalalala = def la = ghi ...Replies: 9 Views: 16.3K
- 9 Replies
- 16.3K Views
- Last post by Mofi
Jul 01, 2014
- If the content is consisting of only ASCII characters, everything is ok: UltraEdit.clipboardContent = "hello, world"; UltraEdit.activeDocument.paste(); But if the content contains Chinese characters like UltraEdit.clipboardContent = "你好"; UltraEdit.activeDocument.paste(); then I get nothing. Has any...Replies: 6 Views: 5.3K
- 6 Replies
- 5.3K Views
- Last post by JackTing
Jun 04, 2014