I tried exactly what you said and i get this error when running the script:
This window is the wrong kind (e.g. pop-up vs. normal) to use this command.
My icons include aliases, folders, two drives including startup, trash, and a desktop printer. Why am i getting this error?
-Luap