Re: Deleting Folder Contents
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