I just got help to get file name of a chosen folder.
tell application "Finder"
name of files of folder (choose folder) -- names of files
end tell
However, I can't get this working for a give path, like this one
set myfile to name of files of folder "~/Downloads/test/"
I played around a lot with POSIX path and others, but I can't get this working. Could you please help me again, thanks.