How to delete contents of folder in OS X?
How to delete contents of folder in OS X?
- Subject: How to delete contents of folder in OS X?
- From: Jack Wenrick <email@hidden>
- Date: Mon, 14 Jul 2003 22:31:41 -0400
The following script works fine in OS 9.2.2. The folder gets emptied as
instructed.
However, in OS X v10.1.5, the folder also gets sent to the trash.
The script:
tell application "Finder"
activate
delete contents of folder "NewOne:"
end tell
I have tried this on desktop folder (above), and folders on a disk
partition. Both give the same results. The folder gets trashed along
with the contents.
Thanks, Jack Wenrick
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.