The following "Rebuild Desktop" script was written by Jon Pugh and requires Jon's Commands <http://www.seanet.com/~jonpugh/>
It includes code to delete System 6's "Desktop" file (just in case you're a longtime Mac user and can remember System 6).
Modify the following script as you see necessary:
-- Requires Jon's Commands <http://www.seanet.com/~jonpugh/>
set vols to list disks
repeat with v in vols
-- ignore errors from CDs, Mail Enclosures and more
try
moveFile file (v & "
esktop DB") to v & ":Trash" -- Jon's Commands
moveFile file (v & "
esktop DF") to v & ":Trash" -- Jon's Commands
on error
end try
-- kill System 6 desktop files too
try
moveFile file (v & "
esktop") to v & ":Trash" -- Jon's Commands
on error
end try
end repeat
if (keys pressed) contains "option" then -- Jon's Commands
-- if you prefer to quit (with option key)
tell application "Finder" to quit
else
-- I prefer to restart (no option key)
tell application "Finder" to restart
end if
[This message has been edited by RGS (edited 12-14-1999).]