Re: Select desktop items for a specific volume
Re: Select desktop items for a specific volume
- Subject: Re: Select desktop items for a specific volume
- From: Andy Wylie <email@hidden>
- Date: Thu, 09 Aug 2001 00:47:06 +1200
on 8/8/01 8:12 AM, Jeremy Reichman at email@hidden wrote:
>
Thanks!
I recall giving you a script some time ago that collected files of a
specific volume on the desktop you wanted to trash. It's simply modified to
get folders and an alias list too...
------------------------
set thisDisk to choose from list (list disks)
-- note 'without multiple selections allowed' is default
tell application "Finder"
set someStuff to (folders of desktop whose description does not contain
"disk ")
--you might want to check what 'description' returns for a better filter
set someStuff to someStuff & (files of desktop)
set disksStuff to {}
repeat with i in someStuff
if (name of disk of i) = (thisDisk as text) then
set end of disksStuff to (i as alias)
end if
end repeat
end tell
------------------------
you could also wrap it in another loop of (list disks) and have it move or
copy items to a new folder.
_____________________________ Andy