Tapatalk

Refresh/reload a file

Refresh/reload a file

1
NewbieNewbie
1

    Jul 22, 2008#1

    I need a way to force a refresh/reload of the active document. Is there a command to do this? Below is what I'm using now, but it's not exactly ideal. I know there is the "Revert to Saved" command in UltraEdit. Is there a corresponding script/macro command for this?

    Code: Select all

    var path = UltraEdit.activeDocument.path      
    UltraEdit.closeFile(path, 0);
    UltraEdit.open(path);

    6,685587
    Grand MasterGrand Master
    6,685587

      Jul 23, 2008#2

      No other method exists. There is no script command for "Revert to Saved". And just using UltraEdit.open(UltraEdit.activeDocument.path); does nothing if the file is already open (and modified).
      Best regards from an UC/UE/UES for Windows user from Austria