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

Deleting Folder Contents


  • Subject: Deleting Folder Contents
  • From: Luther Fuller <email@hidden>
  • Date: Mon, 11 Oct 2010 11:39:08 -0500

I have been using this to trash the contents of a folder ...

tell application "Finder"
--
--
delete every item of folderAlias
end tell

I would like to use the following to avoid the files appearing in the trash ...

tell application "Finder"
--
--
end tell
tell application "System Events" to delete every item of disk item (folderAlias as text)

but, I can't get the last line of this code to work.
I've tried many variations on this theme, but nothing.
Anyone know the correct line of code?

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Deleting Folder Contents
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: Sort Multidimensional Array by Column 5
  • Next by Date: Re: Deleting Folder Contents
  • Previous by thread: Oracle databases and AppleScript
  • Next by thread: Re: Deleting Folder Contents
  • Index(es):
    • Date
    • Thread