Consider this situation: I have an AppleScript in Keyboard maestro. I copy the AppleScript and paste it into Script Debugger. The line endings are carriage returns instead of line feeds. What am I doing wrong?
You’re doing nothing wrong. AppleScript’s compiler still uses carriage returns, but they’ll be changed to linefeeds when you compile in Script Debugger.
This is true only if it’s a valid script. If it isn’t, the conversion doesn’t take place and the CR’s are not replaced.