• 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: Removing Applications from the Dock Programmatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Removing Applications from the Dock Programmatically


  • Subject: Re: Removing Applications from the Dock Programmatically
  • From: Graff <email@hidden>
  • Date: Tue, 26 Aug 2008 21:20:35 -0400

I forgot to mention that you'll have to force the Dock to re-load its preferences after fooling around like this.

I really only know how to do this through the terminal or through AppleScript, although I'm sure there are other ways to do it

Here's an example of an AppleScript:

NSString *quitSource = @"tell application \"/System/Library/ CoreServices/Dock.app\" to quit";
NSAppleScript *quitScript = [[NSAppleScript alloc] initWithSource:quitSource];
NSDictionary *theError = [[NSDictionary alloc] init];


	[quitScript executeAndReturnError:&theError];

- Ken
_______________________________________________

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


  • Follow-Ups:
    • Re: Removing Applications from the Dock Programmatically
      • From: Negm-Awad Amin <email@hidden>
    • Re: Removing Applications from the Dock Programmatically
      • From: "Sherm Pendley" <email@hidden>
    • Re: Removing Applications from the Dock Programmatically
      • From: Brett Powley <email@hidden>
References: 
 >Removing Applications from the Dock Programmatically (From: Kevin Kicklighter <email@hidden>)

  • Prev by Date: Re: Removing Applications from the Dock Programmatically
  • Next by Date: Re: xcode: how to not Go with Instruments
  • Previous by thread: Re: Removing Applications from the Dock Programmatically
  • Next by thread: Re: Removing Applications from the Dock Programmatically
  • Index(es):
    • Date
    • Thread