Re: erasing a file or folder
Re: erasing a file or folder
- Subject: Re: erasing a file or folder
- From: Craig Sutherland <email@hidden>
- Date: Wed, 28 May 2003 17:00:23 -0500
Syllas-
There is a dictionary of scriptable events and objects that for every
scriptable application. You can find this in the Script Editor File
menu. The application that handles file management is the Finder. Open
the Finder dictionary. In the Standard Suite is the delete event. This
will move an item to the Trash. In the Finder dictionary under finder
items is the empty event. Take a look at the terminology.
Substitute the path to the file you want to delete--
Script:
*************************
Tell Application "Finder"
delete file "Macintosh HD:users:syllas:Desktop:yourfile"
Empty Trash
End tell
*************************
HTH
Craig
On Wednesday, May 28, 2003, at 03:18 PM, Syllas R. 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
Thanks in advance !
>snip<
_______________________________________________
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.