• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Opening the trash in the Finder?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Opening the trash in the Finder? (From: Michael McCracken <email@hidden>)

  • Prev by Date: Re: Calling a UNIX application from a carbon app
  • Next by Date: Re: Help with simple EncodeObject & DecodeObject
  • Previous by thread: Re: Opening the trash in the Finder?
  • Next by thread: Re: Opening the trash in the Finder?
  • Index(es):
    • Date
    • Thread