Making a new folder

I want to make a new folder from a variable that contains the path to the folder where I want to create the new folder. How do I do that?

This doesn’t work:

set myFolder to “mydisk:myfolder:anotherfolder”
make new folder at myFolder with properties {name:myNewFolder}

You are telling it (maybe the Finder?) to make a new folder at “mydisk:myfolder:anotherfolder”, which is a string of text characters. Not possible. Try this:

set myFolder to "mydisk:myfolder:anotherfolder:"

tell application "Finder" to ¬
	make new folder at folder myFolder with properties {name:"myNewFolder"}

– Rob