Duplicate and rename folder

Hi!

I would like some help with a applescript that duplicate a certain folder and then askes me to give the new (duplicated) folder a new name.

Thankful for some help.

Hi,

welcome to MacScripter.
Try this


set folderToDuplicate to choose folder with prompt "Choose Folder to Duplicate"
set newName to text returned of (display dialog "Enter New Name" default answer "" buttons {"Cancel", "OK"} default button 2)
tell application "Finder"
	set newFolder to duplicate folderToDuplicate
	set name of newFolder to newName
end tell

Thank you so much for the help.

Exactly what I was look for.