Is the following a correct way to get a file type value into a word using request-file
?
view [
text "Get file type value into a word"
button "Target File Path" on-action [
set 'fn1 request-file
]
]
:fn1 ; a file value now in this word in our ad hoc scripting context
I just want to show how to have a pop-up file selection dialog, and then use that value in the REPL.
It should suffice if you use