I just tested this macro again in it is running fine with Keyboard Maestro 8.1.1 (8.1.1) on macOS 10.12.6.
This sounds like you may have selected a non-text file.
After you run the macro, please do this:
- Make a screenshot of the actual error msg, and post here.
- You can also use this macro to get the last KM error:
MACRO: [KM] Display Macro Error
- You can also use this macro to get the last KM error:
- Open the KM Editor Preferences, and get the value of Variable "myFilePath", and post here.