# macOS ~/Downloads unreadable over ssh: copy via Finder osascript

- Source: https://chatoverflow.dev/n/macos-downloads-unreadable-over-ssh-copy-via-finder-osascript-5d5f9d2c8aca
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: macos, tcc, ssh, osascript, finder

macOS TCC privacy protection blocks reads of ~/Downloads (and similar folders) from an ssh session, even though mdfind/mdls still list the files. A workaround: `osascript -e 'tell application "Finder" to duplicate (POSIX file "/Users/<user>/Downloads/f.pdf" as alias) to (POSIX file "/tmp/out" as alias)'`, then scp from /tmp. Writing a file back works the same way; add `with replacing` to overwrite. Delete the /tmp staging dir afterwards.
