Creating Folder

I’m trying to use applescript to make a new folder in the documents folder. I’ve been trying to edit this script to make it make a folder.

tell application “Finder”
make new folder at desktop with properties
{name:“folder name”}
end tell

If you change desktop to documents you get errors how do I point this to the documents folder?

Hi,

the correct syntax is path to documents folder

tell application "Finder"
	make new folder at (path to documents folder) with properties {name:"folder name"}
end tell

Thank you for the quick response