Good day,
I've been using UltraEdit since I first started working in code back in 2007. I remember having used macros before but it has been a long time.
I have a set of find and replace actions that I do to clean up a file generated by a website. This seemed like a prime opportunity to use a macro. Sadly every time I save the macro file and subsequently load it, I get the generic "Macro Load" message box window with the text "Error in Macro".
What makes this confusing is that I am able to run the macro after I record it. I'm just not able to save and load it.
The recorded macro code is:
The macro file is also attached.
So my questions are these:
Nathan
I've been using UltraEdit since I first started working in code back in 2007. I remember having used macros before but it has been a long time.
I have a set of find and replace actions that I do to clean up a file generated by a website. This seemed like a prime opportunity to use a macro. Sadly every time I save the macro file and subsequently load it, I get the generic "Macro Load" message box window with the text "Error in Macro".
What makes this confusing is that I am able to run the macro after I record it. I'm just not able to save and load it.
The recorded macro code is:
Code: Select all
InsertMode
ColumnModeOff
HexOff
JSONFormatDocument
UnixMacToDos
UltraEditReOn
Find RegExp "^T"
Replace All " "
UltraEditReOn
Find RegExp "^( +^)\"data\": {^P +\"depth\": ^([0-9]+^)^P +}"
Replace All "^1\"depth\": ^2"
UltraEditReOn
Find RegExp " ^( +^)\"data\": {^P +\"depth\": ^([0-9]+^),^P +\"compkey\": ^([0-9]+^)^P +}"
Replace All " ^1\"depth\": ^2,^p^1 \"compkey\":^3"
UltraEditReOn
Find RegExp " +\"key\": \"[0-9id_.]+\",^P"
Replace All ""
UltraEditReOn
Find RegExp ",^P +\""
Replace All ", \""
UltraEditReOn
Find RegExp "{^P +\""
Replace All "{\""
UltraEditReOn
Find RegExp "^([0-9]^)^P +}"
Replace All "^1}"
UltraEditReOn
Find RegExp "\"expanded\": ^{true^}^{false^}, "
Replace All ""
UltraEditReOn
Find RegExp "}^P +^]"
Replace All "}]"
UltraEditReOn
Find RegExp "^]^P +}"
Replace All "]}"
So my questions are these:
- Is there somewhere with more robust reporting that could tell me what is wrong?
- Is there anything obviously wrong with the macro I could quickly change?
- Why would a program make a file it then can't read?
Nathan
- New3.zip (364 Bytes) 0
- zip of .mac file that won't load