Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'A workaround to hide the desktop in 10.2' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A workaround to hide the desktop in 10.2
Authored by: Frederico on Jul 22, '03 04:52:30PM

Regarding problem 1:

move each_item to "Path:to:new:folder:" replacing no

... should resolve that issue.

You're also going to have problems if your target folder exists on another drive/volume/partition, as the 'move' command can behave with results you wouldn't always expect. For cleaner, more-predictable results, use 'copy' and then 'delete'. That, however, then leaves garbage in the Trash. Best now to use 'do shell script' to both copy and delete (rm, but be careful!) each file.

Lots and lots of ways to go about this, and this is an excellent object lesson in AppleScript. Even if you don't want auto-cleaning of the Desktop, using the basis of this hint to generate a cleanup tool for your Desktop, Downloads folder, Documents folder, etc., can be quite satisfying and a lot of fun.

[ Reply to This | # ]
Problem 1 solved
Authored by: sinjin on Jul 22, '03 05:55:56PM
Thanks Frederico, worked like a charm! Now only the files with conflicting names remain on the Desktop.

Good heads-up regarding moving between drives, too.

[ Reply to This | # ]

Very cool script!
Authored by: Dale Sorel on Jul 22, '03 11:48:59PM

Thanks for the great script. I was trying to write something like this a while back but with little success :(

[ Reply to This | # ]