If I type this command into the terminal, it works perfectly.
I added it to an AppleScript, and attached it to folder action script, and for some reason it doesn't work, and freezes Finder for a while when it tries to execute.
Here is the apple script:
Any reason why this apple script shouldn't work, and why it is freezing Finder?
Code:
find ./ ! -name '*.download' | xargs -I trp cp -pf trp /Users/Todd/Downloads/trp 2>/dev/null
I added it to an AppleScript, and attached it to folder action script, and for some reason it doesn't work, and freezes Finder for a while when it tries to execute.
Here is the apple script:
Code:
on adding folder items to this_folder after receiving added_items
tell application "Finder"
do shell script "find ./ ! -name '*.download' | xargs -I trp cp -pf trp /Users/Todd/Downloads/trp 2>/dev/null"
end tell
end adding folder items to
Any reason why this apple script shouldn't work, and why it is freezing Finder?