[futurebasic] Re: Trash volRef%

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 1998 : Group Archive : Group : All Groups

From: "Aaron" <aln@...>
Date: Tue, 28 Apr 1998 19:44:38 -0500
----------
>From: Chris.Young@...
>To: futurebasic@...
>Subject: Re: [FB] Trash volRef%
>Date: Tue, Apr 28, 1998, 4:31 PM
>

>Aaron,
>
>There is a constant for the trash folder type, _kTrashFolderType (?) that
you 
>can use with the toolbox call FindFolder in order to obtain the vRefNum and
the 
>dirID of the trash, irregardless of what it is named.
>
>Chris Young
>


I'm calling it like this: 
err= FN FINDFOLDER
(_kOnSystemDisk,_kTrashFolderType,_kDontCreateFolder,foundVRefNum%,foundDirI
D&).  

The fucntion looks like it'll return in foundVRefNum% the volume reference
of the Trash, yet it's returning the root level of the startup disk.  Am I
calling it right?  What I'm trying to do is move the app to the Trash when
it's finished.

-Aaron