automator: shell script to change file permissions
Just created a workflow to copy some files from one location to another.
Second thing I want to do is run a shell-script to set some file permissions recursively, some for the folders, the other for the files.
I figured I could do the following:
-----
cd /IntoAFolder
find . -type d -exec chmod 770 {} \;
-----
Unfortunately, this seems to be needed to be done as a sudo'er and thus requires the user's password.
So the question is, how do I get that password and hand it to the shell script or is there another way of doing this?
MacBook Pro (early 2006), Mac OS X (10.5.3)