Re: Opening the trash in the Finder?
Re: Opening the trash in the Finder?
- Subject: Re: Opening the trash in the Finder?
- From: Matt Gemmell <email@hidden>
- Date: Tue, 28 May 2002 09:24:04 +0100
On 28/5/02 at 1:05 am, Michael McCracken <email@hidden>
wrote:
>
I'm sure that I'll be the tenth person to mention this, but the trash
>
is always at ~/.Trash/ I tested it in the terminal with "open
>
~/.Trash", and it opens the trash alright, but without the fancy
>
trash logo... but at least it's there. so i guess the path
>
[NSHomeDirectory() stringByAppendingPathComponent:@".Trash/"] should
>
do it. (That I didn't test :) )
I'm a bit wary about doing it that way.
>
Maybe the cleanest way (depends on opinion) would be to tell Finder
>
to open the trash using applescript: here's how from the terminal:
Very likely I'll do it via AEs or AppleScript. I suppose I could use an
NSTask to trigger osascript, with:
tell application "Finder" to open trash
as a parameter. osascript is available in 10.1 and later, isn't it?
Best,
-Matt
--
Matt Gemmell
Scotland Software
<
http://www.scotlandsoftware.com/>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.