To run the script in DirectoryView, you must connect it to the view's Push Button, Text, and Multiple Select List parts:
icon in the lower-right of the Script Editor to return to the Composition
Editor.
Now, make two more connections so the script can get the directory specified in the text field and then display the file names in the list:
To select the parameters, pop up the menu for the clicked-getFilesFromDir:to: connection, and select Connect then select the parameter.
Select
to test your work. After you press Show, you should see the
files in the specified directory in the list pane:
