• 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: Relaunch Finder (without AppleScript)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Relaunch Finder (without AppleScript)


  • Subject: Re: Relaunch Finder (without AppleScript)
  • From: "Shawn Erickson" <email@hidden>
  • Date: Wed, 16 Jul 2008 07:28:15 -0700

On Wed, Jul 16, 2008 at 6:57 AM, Piero Avola <email@hidden> wrote:
> Hello,
> I need to relaunch the Finder with my App. I don't want to use any scripts
> therefore. How can I do this with the Cocoa framework?

You likely should use AppleScript to do this...

NSAppleScript* script = [[[NSAppleScript alloc] initWithSource:@"tell
application \"Finder\" quit"] autorelease];
[script executeAndReturnError:nil]

(typed in mail)

-Shawn
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Relaunch Finder (without AppleScript) (From: Piero Avola <email@hidden>)

  • Prev by Date: Base64 data string decode to save to file
  • Next by Date: Re: Base64 data string decode to save to file
  • Previous by thread: Re: Relaunch Finder (without AppleScript)
  • Next by thread: Re: Relaunch Finder (without AppleScript)
  • Index(es):
    • Date
    • Thread