Possible?

Is it possible to use code like this to create an encrypted or nonencrypted disk image on the desktop instead of a folder?

  try
	tell application "Finder" to make new folder at desktop with properties {name:"Test"}
	display dialog "It Worked!"
on error
	display dialog "It didn't work!"
end try

Thanks in advance!