How to list the contents of the Trash under OS X

Frank D. Engel, Jr. fde101 at fjrhome.net
Wed Sep 1 13:52:40 EDT 2004


You can determine the UID of the current user under OS X with the 
following function call:

shell("id -u")


For example:

answer "The current user has a UID of: " & shell("id -u")

On Sep 1, 2004, at 1:34 PM, Kirk McElhearn wrote:

> On 9/1/04 7:14 PM, "Howard Bornstein" <howard.bornstein at gmail.com> 
> wrote:
>
>> If I set the default folder to "/Users/myUserName/.Trash/" and get the
>> files, it only lists items that have been moved to the trash from the
>> startup disk. Any items moved to the trash from other mounted volumns
>> don't show up.
>>
>> Anybody know why? Or a way around this problem?
>
> Each volume has its own trash. On my Backup volume, for example, it is
> located here:
>
> /Volumes/Backup/.Trashes
>
> Each user has a sub-folder, so my user's trash is here:
>
> /Volumes/Backup/.Trashes/501
>
> So, if you want to access the trash, you need to know the UID.
>
>
> Kirk
>
>         My new e-book: Take Control of Users and Accounts in Panther
>           http://www.tidbits.com/takecontrol/panther/users.html
>   . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 
> . . .
>   . . . . . . .  kirk at mcelhearn.com | http://www.mcelhearn.com  . . . 
> . . .
>   . .  Kirk McElhearn | Chemin de la Lauze | 05600 Guillestre | France 
>  . .
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
-----------------------------------------------------------
Frank D. Engel, Jr.  <fde101 at fjrhome.net>



___________________________________________________________
$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com



More information about the use-livecode mailing list