• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Selecting every item of one disk's desktop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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." --?
----------------------------------------------------------------------------


  • Prev by Date: Re: Applet's last command doesn't take
  • Next by Date: Unspecified unit returned by gestalt call
  • Previous by thread: Re: Selecting every item of one disk's desktop
  • Next by thread: File v. Folder
  • Index(es):
    • Date
    • Thread