Re: Removing Applications from the Dock Programmatically
Re: Removing Applications from the Dock Programmatically
- Subject: Re: Removing Applications from the Dock Programmatically
- From: Negm-Awad Amin <email@hidden>
- Date: Wed, 27 Aug 2008 09:33:44 +0200
Am Mi,27.08.2008 um 03:20 schrieb Graff:
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
IIRC, you can send a HUP to the application to make it re-read its
defaults. I don't know, whether Dock.app automatically updates the dock.
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
Amin Negm-Awad
email@hidden
_______________________________________________
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