Compiling scripts works fine unless I have any line of code below the last End Sub in my document. If I have anything below that, the compiler seems to remove the last character. For instance, this will result in a plugin command that won’t run, but if I put a comment line at the bottom or if the last line is End Sub, then it works as expected. (This isn’t one of the exact scripts that gave me the error, but ends the same.)
Dim origLoc
origLoc = SetLocale(1033)
Call Main()
Sub Main()
End Sub
'resets VBScript in original location
Call SetLocale(origLoc)