Page 1 of 1
create an alias on the dock of OSX
Posted: Wed Dec 01, 2010 2:40 pm
by jmburnod
Hi All
Is there a way to create an alias on the dock
I readed the entry for createalias in dictinary but
i didnt a doc about dock path
Jean-Marc
Re: create an alias on the dock of OSX
Posted: Wed Dec 01, 2010 4:56 pm
by Klaus
Bonjour Jean-Marc,
this is only possible via AppleScript or SHELL (first hit in GOOGLE

):
http://hints.macworld.com/article.php?s ... 9170450489
Best
Klaus
Re: create an alias on the dock of OSX
Posted: Thu Dec 02, 2010 1:46 am
by Mark
Hi Jean-Marc,
Before following Klaus' advice, you need to check whether the item already exists in the dock. If it already exists, you don't want to add it again.
Use the following line to retrieve info about all the items in the dock:
Code: Select all
put shell("defaults read com.apple.dock persistent-apps") into myDockItems
Now parse the info in myDockItems and check if it contains your item. If it does't, then proceed as suggested by Klaus.
Best,
Mark
Re: create an alias on the dock of OSX
Posted: Thu Dec 02, 2010 9:40 am
by jmburnod
Hi Klaus and Mark,
Thank
I'll cooking with shell first time
Best
Jean-Marc
Re: create an alias on the dock of OSX
Posted: Thu Dec 02, 2010 5:17 pm
by FourthWorld
If you plan on submitting your app to the forthcoming OS X App Store, you may want to skip this feature. IIRC apps that install icons to the Dock will be rejected from the new App Store.
Re: create an alias on the dock of OSX
Posted: Thu Dec 02, 2010 10:28 pm
by jmburnod
Hi Richard,
If you plan on submitting your app to the forthcoming OS X App Store, you may want to skip this feature. IIRC apps that install icons to the Dock will be rejected from the new App Store.
Thank for this
All the best
Jean-Marc