- Replies
- Views
- Last post
- I have a situation wherein my delimiters on a file are quote marks ("). The end of every line should be a " and then a hard return. However, some lines have inserted hard returns that should not be present. I need to move those lines up to the end of the previous line. I have posted example attachme...Replies: 10 Views: 48.6K
- 10 Replies
- 48.6K Views
- Last post by davidcwhitney
Apr 28, 2017
- I'm working on a script that converts PM times to 24 hour format. The core of that script is this: var WorkingFile = UltraEdit.activeDocument; WorkingFile.copy(); Hour = UltraEdit.clipboardContent; Hour = parseInt(Hour) if (Hour != 12) { Hour += 12; } UltraEdit.clipboardContent = Hour; WorkingFile.p...Replies: 3 Views: 2.8K
- 3 Replies
- 2.8K Views
- Last post by nicolbiden
Jun 02, 2015
- In the thread Script to find, remove and report repeating words within a line : However, I found it interesting that there was no error on execution of your script because of function trim(). According to String methods documentation this method of the String object was added with JavaScript 1.8.1 a...Replies: 5 Views: 3.9K
- 5 Replies
- 3.9K Views
- Last post by Mofi
Sep 10, 2012
- Is there a way to script creating a new FTP connection? I am attempting to create a script that will: 1) prompt for the hostname of the server 2) prompt for the username and password of the FTP account 3) create and connect to the FTP server using these credentials I would like to bypass the standar...Replies: 3 Views: 10.4K
- 3 Replies
- 10.4K Views
- Last post by cnessen
Sep 06, 2012
- I am donating a new tool to the UltraEdit community. There have been a number of times that I wanted to clear my search and replace history without clearing my file history with UltraEdit (well, UEStudio, actually). This just isn't possible. If you clear one thing, you clear everything. So I am intr...Replies: 7 Views: 7.6K
- 7 Replies
- 7.6K Views
- Last post by rhapdog
Aug 29, 2012
- For anyone using phpDocs format to document their php Project this script file should be very useful. The script generates the docBlock code depending on the currently selected line. <?php: creates file-level block. class/var: creates an empty block for comments. function: automatically adds the lis...Replies: 5 Views: 9.8K
- 5 Replies
- 9.8K Views
- Last post by Mofi
Aug 04, 2011
- When killing UltraEdit (e.g. because Windows bugs me to reboot after an update) and recovering open files, I notice that not all the files that were open at the time are indeed restored. Because of this, I always copy all Edit.* files from C:\Documents and Settings\<current user>\Local Settings\Temp...Replies: 8 Views: 5.2K
- 8 Replies
- 5.2K Views
- Last post by fredtheman
Dec 17, 2010
- It would save me lots of time if you could access Telnet from scripts. Ideally I want to sign onto my Solaris server and change directory on opening a project. Ron WebbReplies: 1 Views: 4.1K
- 1 Replies
- 4.1K Views
- Last post by jorrasdk
Nov 18, 2010
- Since it's only used for debugging (or, at least for info to current UE user), I'd like to see a scriptable shortcut to UltraEdit.outputWindow.write. And since it's a shortcut and meant for programmers, I propose this: ? (Yes, I'm a VBer) In your code you just write: ? "this is the value of x now:" ...Replies: 2 Views: 3.4K
- 2 Replies
- 3.4K Views
- Last post by jorrasdk
Oct 29, 2010
- Not having found a suitable solution to my problem at the forums, I've decided to post my own question - I'm trying to download a SPUFI output file from the mainframe to a PC. This file has accented european characters. For ex, 'Réception pour contrôle'. The server type has been set to MVS and the d...Replies: 9 Views: 48.0K
- 9 Replies
- 48.0K Views
- Last post by gotsch01
Aug 13, 2010
- Dear All, I would like to get Tilde separated list of Tags and values in a valid xml file. Input : <Person> <Name>Prashanth</Name> <Place>Bangalore</Place> </Person> OutPut : Tags : Name~Place Values : Prashanth~Bangalore I tried many ways but in vain..I can do above in a excel file but would love t...Replies: 5 Views: 6.8K
- 5 Replies
- 6.8K Views
- Last post by prashanth7582
Aug 04, 2010
- I am having a problem using activeDocumentIdx in a script. I have uploaded the files that illustrate the problem (already deleted) , reduced to the minimum I could create that shows it. My sample script loops opening two files, moving the cursor to the beginning of one file, then closing the files; ...Replies: 4 Views: 6.3K
- 4 Replies
- 6.3K Views
- Last post by jorrasdk
May 07, 2010
- If you ever tried to use Perl regular expressions to search for an item in UE, you might have noticed that even if your regular expression specifically searches using case-sensitive tokens, the results may match words that do not match on the case-sensitivity. For example: If you search for " [A-Z]+...Replies: 7 Views: 8.3K
- 7 Replies
- 8.3K Views
- Last post by mwb1100
Apr 30, 2010
- Hello, I'm trying to write a macro to change numbers to roman numerals. Ideally to search and find the word "Chapter" and replace the number [1-?] after it with "I, II, III, IV ..." So far this what I have: Main InsertMode ColumnModeOff HexOff Top Clipboard 9 ClearClipboard Clipboard 8 ClearClipboar...Replies: 2 Views: 7.0K
- 2 Replies
- 7.0K Views
- Last post by Mofi
Apr 18, 2010
- Is there some configuration value that can be set in a script to avoid creating a backup file when "saveAs" is used? That is, is there some variable that can be set that is equivalent to the configuration setting "File handling -> Backup -> No backup" radio button in the GUI? I want to save a file w...Replies: 10 Views: 5.0K
- 10 Replies
- 5.0K Views
- Last post by Mike
Apr 13, 2010
- Hello script writers! Prior UltraEdit v16.00 and prior UEStudio v10.00 document property UltraEdit.activeDocument.currentColumnNum contains the current column number in the active line of the active file starting the count with 0. But most script commands like gotoLine() or sortAsc() require value 1...Replies: 3 Views: 2.5K
- 3 Replies
- 2.5K Views
- Last post by Mofi
Mar 17, 2010
- I'm using UE v15.20.0.1022. Being an old-fashioned mainframe techie I know nothing about JS but using the UE documentation and info gleaned from these fora I've managed to create a script to extract certain data from PL/I source code. As part of my data extract I need to preserve the line number on ...Replies: 2 Views: 2.1K
- 2 Replies
- 2.1K Views
- Last post by stonkin
Mar 02, 2010
- How can I access the active document's index number? I can set the active document by using UltraEdit[x].setActive(); but how can I get the index of the currently active document? Thanks.Replies: 8 Views: 13.5K
- 8 Replies
- 13.5K Views
- Last post by jorrasdk
Mar 02, 2010
- Hi, I found no way to include an external script into my scripts. So I ended with this workaround. Note: This is just a proof of concept. It worked fine for me but it is not really tested. For testing I used the "FileNameFunctions.js" from here http://www.ultraedit.com/forums/viewtopic.php?f=52&t=67...Replies: 7 Views: 25.4K
- 7 Replies
- 25.4K Views
- Last post by rhapdog
Jan 28, 2010
- Hi, I'm not sure if this is the right place to ask the question, but I was wondering if there is a way to randomly keep or drop rows in a text file using Ultraedit? For instance, randomly drop 10% of the rows, or 1000 of the rows throughout the text file? If anyone can give me some suggestions on ho...Replies: 1 Views: 2.1K
- 1 Replies
- 2.1K Views
- Last post by jorrasdk
Oct 05, 2009
- When using Insert/Fill Columns , how to represent the tab character ? I want a tab character inserted at a certain column # for every row. Thanks.Replies: 4 Views: 5.0K
- 4 Replies
- 5.0K Views
- Last post by jorrasdk
Jul 07, 2009
- Hi, I tried to open a ftp file using following script but never got a success, please help UltraEdit.open("FTP::username:password@mysite.on.ca\\\\/dir1/dir2/dir3/interface|interface.cfg"); Also I have tried this one: UltraEdit.open("FTP::username:password@ftp://mysite\\/dir1/dir2/dir3/interface/inte...Replies: 2 Views: 4.2K
- 2 Replies
- 4.2K Views
- Last post by bayin
Jul 02, 2009
- In the Registry there are entries with type REG_MULTI_SZ which contain hex values, separated by 00. I wanted to be able to past that into UE and then tell it to convert to text but don't see a function for that. I then thought I could enter it as a hex string in UE and be able to use Ctrl-H to flip ...Replies: 6 Views: 8.9K
- 6 Replies
- 8.9K Views
- Last post by jorrasdk
Jun 22, 2009
- Dear forum readers, This is my third question in short time. Please believe me when I say I am making an effort to RTFM ! I am just not able to find the answers. I would like to use a Regular Expression to test a string in an if statement : if (UltraEdit.activeDocument.selection == RegExp(<mystring>...Replies: 6 Views: 4.5K
- 6 Replies
- 4.5K Views
- Last post by jorrasdk
May 13, 2009
- Can UE count the number of lines of code in a Java file? (not # of lines in the file, # of lines of code)Replies: 3 Views: 3.5K
- 3 Replies
- 3.5K Views
- Last post by jorrasdk
Jan 12, 2009
- I have a macro that adds static text at the end of a file along with dynamic text using GetString. Is there a way to pass in the GetString values from the command line so UE does not prompt me?Replies: 3 Views: 3.3K
- 3 Replies
- 3.3K Views
- Last post by sklad2
Jan 07, 2009
- UltraEdit.clipboardContent won't accept NULL char :( e.g.: UltraEdit.clipboardContent = "Hello\0world\n"; UltraEdit.activeDocument.paste(); Result: Hello Fix that plz!Replies: 11 Views: 10.4K
- 11 Replies
- 10.4K Views
- Last post by jorrasdk
Jan 02, 2009
- Hi, I use UltrEdit to develop and compile remotely on a Solaris server. Seeing as UE or UES cannot do remote compilation, I find the telnet terminal window invaluable to execute remote compilation commands etc. I have dozens of code projects, each in different directories and I find having to start ...Replies: 1 Views: 3.2K
- 1 Replies
- 3.2K Views
- Last post by jorrasdk
Dec 19, 2008
- Hi, I want to save some of my files as favorites in the lists view: http://www.bilder-space.de/upload/09.12O6UDfyPhfDLuqW8.jpg Adding a local file works only with clicking on "..." and select it manually and FTP files cannot be added through this dialog. Is there no button in UltraEdit for adding th...Replies: 3 Views: 3.0K
- 3 Replies
- 3.0K Views
- Last post by Mofi
Dec 18, 2008
- Hello and nice to meet you. I paste some text from a webpage which contains Unicode characters like this: ήγο How can I convert them to plain text (I know that it is Greek fonts, but of course I have to use a Unicode font). Thank you.Replies: 5 Views: 5.6K
- 5 Replies
- 5.6K Views
- Last post by rotten
Nov 25, 2008
- When using Adobe homesite, the ftp open window stays as an extra window open on the left site of the screen. This would be a great feature of UtraEdit! We are working with FTP only, and it is a nuisance to open FTP again and again for every file you need from the server. Of course one can open more ...Replies: 4 Views: 6.8K
- 4 Replies
- 6.8K Views
- Last post by fgeurts
Nov 20, 2008
- I have a fixed length text file with thousands and thousands of records. I need a script/macro to look at position 209-218, and if it contains all spaces, then replace it with the values in position 63-69. And, yes, I would need to append 3 spaces at the end of the file since I am copying a 7-charac...Replies: 7 Views: 5.9K
- 7 Replies
- 5.9K Views
- Last post by skerper
Nov 06, 2008
- Hi to all, Please some help from the experts. I have a text file with system user information in two columns divided in blocks, (many blocks) beginning with "Account user". Within the first column there are words that are repeated through the file in other blocks information for other users. In sec...Replies: 4 Views: 4.4K
- 4 Replies
- 4.4K Views
- Last post by cgcamal
Nov 04, 2008
- I have a variable length, space delimited string (variable name "avg_period") that has trailing spaces that I need to remove before using the "split" command in a script. I could not find a clean way to do this other than trimming the trailing spaces from the whole file (rather than just the string ...Replies: 1 Views: 3.5K
- 1 Replies
- 3.5K Views
- Last post by jorrasdk
Oct 23, 2008
- Test data: 80040400062CECCCFF00000001D73B00 Desired result: 80 04 04 00 06 2C EC CC FF 00 00 00 01 D7 3B 00 Note that there should not be a space at the end of the line. The following simple tactics does not make me happy: Find What: (\w{2}) Replace With: $1 (Note that there is a space after $1). So...Replies: 4 Views: 3.5K
- 4 Replies
- 3.5K Views
- Last post by mingwu
Oct 19, 2008
- I have written a little JavaScript that converts a selected text, into a "Book Title"-like capitalized text. E.g. "The end of the game" is replaced with "The End of the Game". A list of articles ("the", "a", etc.) and prepositions ("at", "on", etc.) are *not* capped. The code should be a nice additi...Replies: 4 Views: 4.6K
- 4 Replies
- 4.6K Views
- Last post by AEon
Oct 02, 2008
- Hi, I am setting up UltraEdit to query a MSSQL 2005 database, using sqlcmd.exe from the tools configuration. I am able to get the query running, and also I can capture the output to a new file. It seems however, that the output encoding or codepage differs from the one I see, when i fire the command...Replies: 2 Views: 3.5K
- 2 Replies
- 3.5K Views
- Last post by handyjan
Sep 26, 2008