1 Reply Latest reply on Oct 7, 2010 2:45 PM by philmodjunk

    return a value from Open File dialog box?

    mattb

      Title

      return a value from Open File dialog box?

      Post

      Is it possible to return the name of the file picked from the Open File dialog box, so some action could be performed with that info before the script proceeds (i.e. before the selected file actually opens)?  

      Matt Bloomfield

        • 1. Re: return a value from Open File dialog box?
          philmodjunk

          If you are sneaky, you can do this.

          Instead of open file, try using Insert File with the store by reference option selected. This pulls up the same dialog and inserts the filepath into a container field and you can then extract the filename from the container field. GetValue ( ContainerFIeld ; 3 ) will return the filepath.

          With Set Error Capture [on] preceding this step, you can even use Get ( LastError ) immediately after the insert file step to check and see if the user clicked cancel.