If you would be willing to code it and want credit for your work, the entire Adobe video editing community would be happy to shower you with praise. Thank you for taking the time to read this and if you can help, I would be appreciative. It seems like it should be easy but the actual code is escaping me. In case it helps, the section of the file I am changing looks like this: This should leave me with a directory full of individual files numbered sequentially. Save As filename plus -n ''''Save text file to new name - n is a number that increments from 0001 to 9999 Read first line of data file ''''usually not more than 40 characters but could be up to 255 Search for XYZ ''''XYZ being the temporary text I use to help identify the place in the file that needs to be changed This is the file where the Macro button resides.įile Open Dialog ''''find and open the text file that I will change over and over again I open the Data file which has multiple lines of text - anywhere from 2 to 1000 or more. It seems to me that it should look something like this: So it could be and I could find and replace it to achieve my goal. If I export a title I get a text file (XML) filled with all kinds of stuff, but the text I want to change is just plain text. I am using 2003, 20 versions of Word, and I imagine the people I will be sharing this with will be as well. I am hoping the code is pretty generic and will not have changed much, if at all. I would prefer having it work across multiple versions of Word if possible. If you could code it, I would be ever so grateful. If you could just supply the right words for the concepts in the pseudocode, that would be great. I used to hang out on forums like this answering questions like this about Visual Basic back when Windows 3.1 was the OS. I have not needed to code anything in over 20 years. This MUST be the last parameter on the command line.This is a little embarrassing. UltraEdit will use your last-used settings for your last Findįor this find. Will open c:\temp\test.txt and search for the first occurrence of “dog” in Uedit32 c:\temp\test.txt /i=c:\temp\uedit32.iniĪllows you to open UltraEdit with a differen INI file will open c:\temp\test.txt in UltraEdit Will open c:\temp\test.txt in the original instance of UltraEdit (UltraEdit Will open c:\temp\test.txt in a new instance of UltraEdit Will open c:\temp\test.txt and print it, then immediately close UltraEdit The line number may be specified without specifying the column number. Will open c:\temp\test.txt and place the cursor at line 10, column 15. Must be listed per line in the specified list file. Will open all listed files in c:\temp\list.txt in UltraEdit. html files in current directory in UltraEdit Tells UltraEdit to play the macro twice (specified by the “ 2“) and then to exit UltraEdit (specified by the “ e“). Uedit32 c:\temp\test.txt /s=”c:\temp\script.js”Īdditionally, you can specify via the command line how many times the macro/script is played, and whether to close UltraEdit after the macro/script is played. To play a script, you would use the following: Uedit32 c:\temp\test.txt /m=”c:\temp\macro.mac” So, to play a macro on a certain file from the command line you would use the following: To invoke UltraEdit from the command line and play a macro or script on a certain file(s), you would need to add the parameter “ /m” for macros or “ /s” for scripts, followed by an equal sign and the path to the macro. Note: For long file names, it may be necessary to enclose the file path and name in quotes. Uedit32 c:\temp\test.txt c:\temp\index.html c:\temp\index.php c:\temp\stat.js You can also open multiple files by separating them with a space. To invoke UltraEdit to open a specific file, you would type “ uedit32” followed by the path of the file you’d like to open. This will open UltraEdit, just as clicking on the UltraEdit icon in Windows will. To invoke UltraEdit from the command line, simply enter “ uedit32” and press Enter. The command line gives you more power and control over your standard Windows operations and provides the flexibility required for tasks that may exceed the user-friendliness of the Windows user interface. This is most often done using the Dos-prompt box which usually is accessed under Start -> Programs -> Accessories. UltraEdit can be invoked from the command line in Windows. Run a Macro or Script from the Command Line
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |