I want to be able to do that. The button on the right should bring up a file selection browser and then write the path into the text field to the left of the button. I’m stuck. I don’t know how to do what I want.
Thanks for the help in advance!
This will use the standard additions ‘choose file’ command and plop the resulting path into some text field…
on clicked theObject
if name of theObject is "yourButton" then
set theFilePath to POSIX path of (choose file without invisibles)
set content of text field "yourTextField" of window "yourWindow" to theFilePath
You can also use the open-panel object provided in ASS, which gives you more control over the presentation and abilities of the file selection window, but also requires a bit more work to implement.