Re: erasing a file or folder
Re: erasing a file or folder
- Subject: Re: erasing a file or folder
- From: Andrew Oliver <email@hidden>
- Date: Wed, 28 May 2003 15:43:17 -0700
On 5/28/03 1:18 PM, "Syllas R." <email@hidden>
wrote:
>
Hi,
>
Is there a way I could tell the Finder to erase a file or folder ?
>
I don't want to delete it and emty the trash but I want to erase it
>
You can use the shell command rm to do this via do shell script. rm accepts
a -P switch to overwrite files before deleting:
set fileToDelete to choose file -- or choose folder as appropriate
do shell script "rm -P " & quoted form of (POSIX path of fileToDelete)
_______________________________________________
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.