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