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

Re: Deleting Folder Contents


  • Subject: Re: Deleting Folder Contents
  • From: Luther Fuller <email@hidden>
  • Date: Mon, 11 Oct 2010 12:47:18 -0500

On Oct 11, 2010, at 11:46 AM, Jim Thompson wrote:

Why is it 'every item of disk item'?

Isn't it every item of folder or every item or disk?

I've tried many variations on that line. probably tried that, too.

On Oct 11, 2010, at 11:52 AM, Axel Luttgens wrote:

Something like this works here:

tell application "System Events"
delete (get disk item "x" of folder "a" of desktop folder)
end tell

I'm trying to delete 'every item' of the folder without inquiring into its name.
I suppose I could get a list of the items in the folder, then delete each item in
a repeat loop. But, it ought to be simpler.

I have tried both ...

tell application "System Events"
get every item of disk item (folderAlias as text)
delete the result
end tell

and

tell application "System Events"
get every item of folder (folderAlias as text)
delete the result
end tell

Neither works.

 _______________________________________________
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>
    • Re: Deleting Folder Contents
      • From: Michelle Steiner <email@hidden>
References: 
 >Deleting Folder Contents (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Deleting Folder Contents
  • Next by Date: Re: Deleting Folder Contents
  • Previous by thread: Re: Deleting Folder Contents
  • Next by thread: Re: Deleting Folder Contents
  • Index(es):
    • Date
    • Thread