Re: Deleting Folders
Re: Deleting Folders
- Subject: Re: Deleting Folders
- From: "Marc K. Myers" <email@hidden>
- Date: Wed, 06 Jun 2001 19:12:03 -0400
- Organization: [very little]
>
Date: Wed, 06 Jun 2001 13:06:40 -0400
>
From: "Peter Nedeljkovich" <email@hidden>
>
To: <email@hidden>
>
Subject: Deleting Folders
>
>
I have tried to move folders from the desktop to another disk by:
>
>
move folders in desktop to disk "disk2"
>
>
The error message says you can't move the trash. Is there a better way to do this?
tell application "Finder"
set folderList to folders of the desktop
repeat with aFolder in folderList
set theFolder to (contents of aFolder)
if name of theFolder is not "Trash" then
duplicate theFolder to disk "disk2" with replacing
delete theFolder
end if
end repeat
empty trash
end tell
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[6/6/01 7:10:50 PM]