Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Sep 15, 2013, 07:49 PM   #1
BobRon
macrumors newbie
 
Join Date: Oct 2012
Add Item to Dock Programmatically

Hi,
I have an app that when run, it takes an app from a certain file path that is denoted by a variable "pathOfFile" and adds it to the dock. I found this that works quite well, but it adds it to the default new user dock. I want it to add it to one user's dock. Is this possible? I don't care if it is BASH or (preferably)AppleScript.
Thanks,
Bob
BobRon is offline   0 Reply With Quote
Old Sep 22, 2013, 04:08 AM   #2
SomeWhores
macrumors newbie
 
Join Date: May 2011
Just modify the path of the code you linked to

just write to

Code:
/Users/herpderp/Library/Preferences/com.apple.dock.plist
SomeWhores is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Tags
applescript, dock

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 09:53 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC