I am building a kiosk in 10.5.2. I have created the script below to delete everything from the desktop at startup. But, there two aliases, Firefox" & “Safari” that need to remain on the desktop. How do I write an exception or not argument to leave those two items alone?
set exception_disk_list to list disks
tell application “Finder”
try
delete every file of entire contents of desktop
end try
try
delete (every folder of entire contents of desktop whose name is not in exception_disk_list)
end try
empty trash
end tell
Thanks, -Barry