0

By using the Component Scripting - mouseReleased - Script Editor

path = system.file.openfile()

I have been able to get the following popup. enter image description here

Now what I want is for the selected File's path to be inserted into the original Text Component's Text Property (properly formatted for Ignition).

Like this -

enter image description here

Any and all input is appreciated.

PaulMc
  • 109
  • 11

1 Answers1

0

The following script works perfectly.

path = system.file.openFile()
if path != None:
    event.source.text = path

We now use the following for this type application.

enter image description here

PaulMc
  • 109
  • 11
  • The following link is related to this answer. https://stackoverflow.com/a/53711297/10166965 – PaulMc Dec 10 '18 at 18:14
  • I've modified this script since last comment. See last Reply/Answer to open all file extensions. – PaulMc Aug 29 '19 at 00:39