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" <[EMAIL PROTECTED]> 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
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . [EMAIL PROTECTED] | http://www.mcelhearn.com . . . . . .
. . Kirk McElhearn | Chemin de la Lauze | 05600 Guillestre | France . .



_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution


-----------------------------------------------------------
Frank D. Engel, Jr.  <[EMAIL PROTECTED]>



___________________________________________________________
$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

_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to