• 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 16:08:10 -0500

On Oct 11, 2010, at 2:12 PM, KOENIG Yvan wrote:

> This one :
>
> set le_dossier to "Macintosh HD:Users:yvankoenig:Desktop:_X16981à16988ƒ:"
>
> tell application "System Events"
> 	set les_objets to disk items of folder le_dossier
> 	repeat with une_reference in les_objets
> 		delete disk item (path of une_reference)
> 	end repeat
> end tell
>
> does the trick too.

Thanks!
I was trying to avoid using 'repeat with ...', but it works and I have my script working correctly, now.

 _______________________________________________
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

References: 
 >Deleting Folder Contents (From: Luther Fuller <email@hidden>)
 >Re: Deleting Folder Contents (From: Luther Fuller <email@hidden>)
 >Re: Deleting Folder Contents (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Deleting Folder Contents
  • Next by Date: Re: Why is this AppleScript working unreliably? Any ideas?
  • Previous by thread: Re: Deleting Folder Contents
  • Next by thread: Re: Why is this AppleScript working unreliably? Any ideas?
  • Index(es):
    • Date
    • Thread