Re: Selecting every item of one disk's desktop
Re: Selecting every item of one disk's desktop
- Subject: Re: Selecting every item of one disk's desktop
- From: Andrew Wylie <email@hidden>
- Date: Tue, 27 Feb 2001 22:35:37 +1300
Jeremy Reichman, aka "Jaharmi" wrote:
>
the ultimate goal is that I want to delete items from a specific disk's
>
desktop, keeping those items on other disk(s)' desktop(s), so I can clean up
>
a disk for disk imaging with Apple Software Restore.
to which Nikke Lindqvist replied
>
I use this little applet for cleaning up my desktop now and again.
that was a monster Nikke ;-)
----------------------------------------
set derDisk to choose from list (list disks)
tell application "Finder"
set trashList to {}
repeat with i in (files of desktop)
if name of disk of i is (derDisk as text) then ?
set trashList to (trashList & name of i)
end repeat
repeat with i in trashList
delete file named i
end repeat
end tell
----------------------------------------
--I want your job Jeremy but $ is OK-- Andy
----------------------------------------------------------------------------
"I know what a sextet is but I'd rather not say." --?
----------------------------------------------------------------------------