I wrote the following code in order to enable the user to choose a diectory and get the directory path as an input, but apperantely it doesn’t work.
any suggestions?
on clicked theObject
tell application "Finder"
activate
set target of Finder window 1 to disk "disk_name"
set position of Finder window 1 to {569, 357}
set my_folder to the name of target of Finder window 1
end tell
set contents of text field "folder_name" to my_folder
end clicked