[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] 2 simple queries



Paul Schinder <schinder@pjstoaster.pg.md.us> on 10 Apr 1997 08:29:09 -0400
writes:

>Charlie Schofield <charlies@CTN.Argus.CO.ZA> writes:
>}Hi, here are 2 simple queries:
>}
>}1.  How can I move items to the trash and delete them?
>}I have tried using the following and it doesn't work:
>
>Which do you want to do, move them to the Trash, or delete them?
>
>}
>}Mac::Files::FSpCatMove("file", "HardDisk:Desktop Folder:Trash");
>
>rename("file","HardDisk:Trash:file");

With respect, that will delete "file", not move it into the TrashCan. On
this machine at least just <rename "file", "HD:Trash"> will also delete
"file".

I don't think it is possible to move a file into Trash with MacPerl without
deleting it. Not that one would want to do it anyway.

Alan




***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch