• 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: Deleting Folders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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]


  • Prev by Date: Re: QXP and changing text attributes
  • Next by Date: Re: text manipulation
  • Previous by thread: Deleting Folders
  • Next by thread: Re: Deleting Folders
  • Index(es):
    • Date
    • Thread