- October 24, 2023 at 6:21 am #29513spirosParticipant
From the Menu item Macros, I have a list of macros. However, I changed their path from D: to C:
Is there any way to batch update this change without removing them and adding them again?October 24, 2023 at 6:29 am #29514Yutaka EmuraKeymaster
In the My Macros list box in the Customize Macros dialog box, you can press CTRL + A and CTRL + C to select all items and copy to the clipboard. You can use EmEditor to replace all D: with C:, then paste back to the list box.October 24, 2023 at 10:24 am #29516
Wow, this is ultra-useful for me because sometimes my Macros end up in a mess and this makes cleaning up a whole lot easier 😃
Many thanks to spiros for asking the question and Yutaka for answering it!October 24, 2023 at 10:36 am #29517
Though just noticed a shortcoming: Macro shortcuts are not or only partially preserved 😐October 24, 2023 at 10:13 pm #29520spirosParticipantOctober 25, 2023 at 1:26 am #29521
In my case it works fine.
Copy / pasting outputted
E:\ProgDB\EmEditor\Macros\Toggle_read_only.jsee \t 0x00000000 E:\ProgDB\EmEditor\Macros\insert_date_only.jsee \t 0x00000000 E:\ProgDB\EmEditor\Macros\insert_date_time.jsee \t 0x00000000 E:\ProgDB\EmEditor\Macros\insert_date_long_time.jsee \t 0x00000000 E:\ProgDB\EmEditor\Macros\delete_between_bookmarks.jsee \t 0x00000000
Where \t is the tab character.
It looks like the \t and 0x00000000 can be omitted from the list.
Pasting allows me to run the Macro, but when trying to edit them I get your “The following files do not exist error”. → Restarting EmEditor fixes this.
- You must be logged in to reply to this topic.