I'm trying to make an AppleScript that searches for a specific folder called keyPRO inside the user's home folder. I'm using the following code in my AppleScript to do this:
do shell script "find ~/ -name 'keyPRO'"
(The "~/" means search inside the current user's home folder.)
What's annoying is that every time I run it, Terminal searches inside my Library folder which causes a "Permission denied" error, as well as other random stuff showing up.
Is there a way to exclude the user's Library folder from being searched?