Dialog to create folder in specified place with specified name

i wanted to be able to use a script to create a new folder by having a prompt to choose where i want the new folder and then another prompt to give that new folder a specified name.

would anybody be able to help me out?

This’ll do it:


set destPath to (choose folder with prompt "Where do you want the new folder?")
set foldName to text returned of (display dialog "What do you want to name the folder?" default answer "" buttons {"Cancel", "OK"} default button 2)
tell application "Finder"
	make new folder at folder destPath with properties {name:foldName}
end tell

works perfect! Your time is well apreciated.