Copy folder to /usr/local folder

Hi All

I am new to Automator, please help me.

I want to copy a folder from “Users/Administrator” to “/usr/local/” folder but not able to copy as, this folder is not shown in finder.

Please give me solution for this.


I’m new to Automator too, but this should work.

Create a workflow. From the list of Actions, go to Utilities, then drag Run AppleScript into the pane on the right. Enter this text in the window (replacing whatever is there)

on run {input, parameters}
	do shell script "sudo mv /Users/Administrator/yourfoldername /usr/local" with administrator privileges
end run

When this runs, the user will be prompted for an administrative password.