Is there an undocumented command to reload or refresh a file from disk?
Hmm. It seems revert works when launched via ctrl+shift+p. Haven't been able to get it to work in the code yet, need to figure out the context. Thanks tito! I believe this is exactly what I was looking for.
Got it. Apparently the "refresh" command cannot be run from a Text command due to the fact you have an open edit object. You can run it from a window command though.