I need to exclude Time Machine path /Volumes/somedrive/Backups.backupdb from the results of
I currently use the following code, but it generates massive logs as it finds and includes all files in the Time Machine folder:
do shell script "find -x " & from_path & " -print0 | xargs -0 ls -d -F -P -l -T -a -e -i -o -p -q " & from_path & " > " & to_path user name "name" password "pass" with administrator privileges
I tried some examples from this site but I can't figure it out.
How I can use find and exclude certain paths?