 |
 |
emptying trash in osx
|
 |
|
 |
|
Mac Enthusiast
Join Date: Dec 1999
Location: UK
Status:
Offline
|
|
hello
I am unable to empty the trash in osx due to a lot of files being locked
I am unable to go through every single one of them
but I remember in OS9 being able to hold down a button to empty the trash (even if the files are locked)
is the same true of OSX?
rich
|
|
PowerMac G5 Dual 1.8GZ, 2GB RAM, 150 & 300 GB Internal Hard Drives, AGP Geoforce 5200 64MB Graphics Card, Superdrive.
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Jul 2002
Location: Florida
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Aug 2002
Location: London, UK
Status:
Offline
|
|
|
|
|
iMac, Intel Core-Duo 2GHz, 2GB, 250GB, OS X 10.4
PowerBook 12", 867MHz, 640MB, 60GB, OS X 10.4
iMac G3, 333MHz, 288MB, 6GB, OS X 10.3
iPods: 3G iPod, 1G mini, 1G shuffle, 2G nano
|
| |
|
|
|
 |
|
 |
|
Admin Emeritus 
Join Date: Oct 1999
Location: Zurich, Switzerland
Status:
Offline
|
|
Originally Posted by Gator Lager
You can't link to search results, they expire quickly and become dead links.
tooki
|
|
|
| |
|
|
|
 |
|
 |
|
Posting Junkie
Join Date: Dec 2000
Status:
Offline
|
|
Try holding down the Option key while emptying the trash.
|
|
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Jun 2006
Status:
Offline
|
|
Select all the locked files in your trash then go in -file -get info. Then you should be able to unlock.
|
|
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: Mar 2004
Status:
Offline
|
|
Originally Posted by tboparis
Select all the locked files in your trash then go in -file -get info. Then you should be able to unlock.
Click and hold on the trash icon in the dock.
Select Empty Trash from the popup menu.
poof.
|
|
-HI-
|
| |
|
|
|
 |
|
 |
|
Posting Junkie
Join Date: Dec 2000
Status:
Offline
|
|
Originally Posted by Hal Itosis
Click and hold on the trash icon in the dock.
Select Empty Trash from the popup menu.
poof.
Uh, the OP was asking about how to deal with files that won't empty via the "Empty Trash" command because they are locked. He wasn't asking where the "Empty Trash" command is in the interface.
|
|
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: Mar 2004
Status:
Offline
|
|
Originally Posted by CharlesS
Uh, the OP was asking about how to deal with files that won't empty via the "Empty Trash" command because they are locked. He wasn't asking where the "Empty Trash" command is in the interface.
Yes sir... thank you, I knew that.
So, I guess you didn't know this:
$ mkdir ~/.Trash/testdir
$ touch ~/.Trash/testdir/testfil
$ chflags 017 ~/.Trash/testdir/testfil
$ chflags 017 ~/.Trash/testdir
$ ls -lAnoR ~/.Trash
total 0
drwxr-xr-x 3 501 501 uappnd,uchg,nodump,opaque 102 Jun 24 10:47 testdir
/Users/halito/.Trash/testdir:
total 0
-rw-r--r-- 1 501 501 uappnd,uchg,nodump,opaque 0 Jun 24 10:47 testfil
Now open the trash, and verify a locked folder containing a locked file reside within.
Then, execute the action I recommended via the dock's contextual menu. It works
on locked items, regardless of Finder's preferences (w.r.t. warning when emptying).
$ ls -lAnoR ~/.Trash
(nothing left) 
|
|
-HI-
|
| |
|
|
|
 |
|
 |
|
Posting Junkie
Join Date: Dec 2000
Status:
Offline
|
|
Originally Posted by Hal Itosis
Yes sir... thank you, I knew that.
So, I guess you didn't know this:
$ mkdir ~/.Trash/testdir
$ touch ~/.Trash/testdir/testfil
$ chflags 017 ~/.Trash/testdir/testfil
$ chflags 017 ~/.Trash/testdir
$ ls -lAnoR ~/.Trash
total 0
drwxr-xr-x 3 501 501 uappnd,uchg,nodump,opaque 102 Jun 24 10:47 testdir
/Users/halito/.Trash/testdir:
total 0
-rw-r--r-- 1 501 501 uappnd,uchg,nodump,opaque 0 Jun 24 10:47 testfil
Now open the trash, and verify a locked folder containing a locked file reside within.
Then, execute the action I recommended via the dock's contextual menu. It works
on locked items, regardless of Finder's preferences (w.r.t. warning when emptying).
$ ls -lAnoR ~/.Trash
(nothing left)
You're a bit of a drama queen, aren't you? All that text just to say that emptying it via the contextual menu behaves differently than emptying it via the Finder menu. I guess we're all supposed to be impressed because you used the Terminal?
Anyway, I just tried it, and strangely enough, emptying via the context menu seems to do the equivalent of holding down the Option key while choosing "Empty Trash" from the Finder menu (which I already suggested). Why the interface should behave so inconsistently that the same exact command does two completely different things depending on whether you selected it from a drop-down menu or a context menu is beyond me. I would actually consider this a bug, and wouldn't be surprised if this got changed in some future release.
|
|
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: Mar 2004
Status:
Offline
|
|
Originally Posted by CharlesS
I would actually consider this a bug, and wouldn't be surprised if this got changed in some future release.
Speaking of "bug," I hope you'll be feeling better in the future.
(Terminal code just made placing a locked file and folder into
the trash a bit easier, as well as setting flags higher than uchg).
--
A few tests showed - -other than uchg -- only the uappnd flag
adds additional 'locked-type' status. (Thus, chflags 06 was all I
really needed to use). If any criticism "deserved" to be volleyed
then, perhaps pointing out the fact that nodump and opaque do
not prevent trashing an item would have been more meritorious).
(Last edited by Hal Itosis; Jun 24, 2006 at 02:21 PM.
)
|
|
-HI-
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|