• 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
How to delete contents of folder in OS X?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to delete contents of folder in OS X?


  • Subject: How to delete contents of folder in OS X?
  • From: Jack Wenrick <email@hidden>
  • Date: Mon, 14 Jul 2003 22:31:41 -0400

The following script works fine in OS 9.2.2. The folder gets emptied as
instructed.
However, in OS X v10.1.5, the folder also gets sent to the trash.

The script:

tell application "Finder"
activate
delete contents of folder "NewOne:"
end tell

I have tried this on desktop folder (above), and folders on a disk
partition. Both give the same results. The folder gets trashed along
with the contents.

Thanks, Jack Wenrick
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: How to delete contents of folder in OS X?
      • From: Andrew Oliver <email@hidden>
    • Re: How to delete contents of folder in OS X?
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: getting multiple selected messages in Eudora?
  • Next by Date: Re: How to delete contents of folder in OS X?
  • Previous by thread: Re: Ethan's Mail
  • Next by thread: Re: How to delete contents of folder in OS X?
  • Index(es):
    • Date
    • Thread