Copy a specific folder to the current folder

I need help with a simple applescript to copy a “template” folder from a specified location that will never change to the current folder that is open in the current finder window.

The “template” folder’s path is always “Hard Drive:Users:Username:Project Audit Forms:audit form template folder”.

The path to the “target” folder that is open in the finder window would always be “Hard Drive:Users:Username:Project Audits:Job Name:” where “Job Name” is the folder that is open in the current finder window and will always be different.

Model: MacBook Pro
Browser: Firefox 68.0
Operating System: macOS 10.14

If I understand well, the code below will do the job.

set template to "Hard Drive:Users:Username:Project Audit Forms:audit form template folder"

tell application "Finder"
	set theTarget to (target of first Finder window) as alias
	duplicate folder template to theTarget
end tell

Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) mercredi 23 octobre 2019 17:54:19

Works perfect! Thank you!