If you poke around inside any of the Apple installers that install icons in the Dock (e.g. iLife) you'll find scripts for adding and removing things from the Dock. However, they're not pretty....

Cheers,
Brett


On 27/08/2008, at 11:20 AM, Graff wrote:

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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to