I've searched for a couple of hours now, and every time I try a recommended fix. I still can't get anywhere. I feel like I'm missing something so obvious, my Mac is laughing at my poor attempts.
Here's the script:
tell application "System Events"
set the_folder to path to folder "dropbox" from user domain as string
set the_file to "ToDo.txt" of (POSIX path of the_folder)
set the_text to (do shell script "cat " & quoted form of (POSIX path of the_file))
return the_text
end tell
The results:
Can’t get "ToDo.txt" of (POSIX path of the_folder). Access not allowed.
It doesn't matter what the folder is, either. I've tried with Documents/Library and still always get that access issue.