I think you’ll find that if you try to drag ‘STURM:Users:iconan:’ to the desktop, it will fail also. I reckon there’s some type of fatal loop that would happen since the user folder contains the desktop that you are trying to duplicate to. :shock:
what i am trying to do is redo one of my os9 scripts that i use for backing up and breing it into osX. a variation of this script used to work, i have “dumbed” it down a little bit to make my point and get advice. so is there a way around this? terminal maybe and do shell scripts?
it also fails when trying to duplicate other folders eg.: library and system folders.
I agree with Rob, you can’t duplicate a folder to a location contained within such folder. Instead, you can duplicate the folder, then move it to whatever location you wish:
tell app "Finder"
set x to (duplicate alias "path:to:user folder:")
move x to alias "path:to:user folder:user subfolder:"
end tell