Continue Editing Sequentially with Files in EmEditor - Tips & Tricks
Continue Editing Sequentially with Files in EmEditor - Tips & Tricks
July 13, 2010 at 6:04 pm #8742
Keymaster
This is an example of the macro that opens the next .txt file in the same folder as the opened file.
// This macro opens the next ".txt" file in the current folder.
//
sFolder = document.Path;
if(sFolder != ""){
fso = new ActiveXObject("Scripting.FileSystemObject");
f = fso.GetFolder(sFolder);
fc = new Enumerator(f.files);
sItem = "";
for (; !fc.atEnd(); fc.moveNext()) {
if(fc.item().name == document.Name) {
for(fc.moveNext(); !fc.atEnd(); fc.moveNext()) {
n = fc.item().name.lastIndexOf(".");
if(n != -1){
if(fc.item().name.slice(n) == ".txt"){
sPath = sFolder + "" + fc.item().name;
try {
editor.OpenFile(sPath);
catch(e){
break;
break;
Also read:
- [Updated] Finding Your Ideal Broadcast Channel Top 10 Guidelines
- [Updated] Prime Ringtone Retailers for Game of Thrones Fans
- [Updated] Rights and Recourse Following Sudden Account Suspension on FB for 2024
- 2024 Approved Trailblaze Your Way to Success Insights on YouTube Metrics with Social Blade
- Bringing GPT Conversations to Android Widgets
- Can’t view HEVC H.265 content on Redmi 13C
- Come Crittografare I Tuoi File Di Immagini Con AOMEI Backupper Pro per Un Backup Sicuro
- Cómo Transferir La Ruta De Inicio De Windows 11 a Un SSD Sin Reinstalación
- Navigating the Latest Tech Trends - Insightful Articles From Tom's Hardware Hub
- Surface Pro 8のSSDを新しく輝かせる! - 改良・交換方法ガイド
- Top Netgear Orbi Mesh Router Analysis: Why It's a Must-Have in Your Home Network
- Troubleshoot and Repair: How to Get Your Computer to Boot From Media in Windows 10 (4 Proven Techniques)
- Ultimate Guide: Resolving Non-Functioning Integrated Webcams in Windows
- Title: Continue Editing Sequentially with Files in EmEditor - Tips & Tricks
- Author: Larry
- Created at : 2024-11-02 21:36:55
- Updated at : 2024-11-03 21:38:10
- Link: https://win-bits.techidaily.com/continue-editing-sequentially-with-files-in-emeditor-tips-and-tricks/
- License: This work is licensed under CC BY-NC-SA 4.0.