# # Add Item to Dock tips # ======================== # Add items from a file to the dock # Depending upon the format of your file, you may need to alter this command slightly. # An example line from the input file : /Applications/System Preferences.app/ # Note : some characters in the path will cause issues. echo additemtodock `cat "$inputfile" | sed '/^#/d' | sed '/^$/d' | sed 's/^/"/' | sed 's/$/"/'` | bash # Any lines which are blank or begin with a # will be not be passed to additemtodock with the # command above. Using such a command with RADmind works great. You may use RADmind to manage # symbolic links with radmind and then add all these items to a input file. If the file is available # it will be added to the dock. However, if the symbolic link is not available then the item will # not be added to the dock. # AppleScript to add items to your dock # The following is a link to an example AppleScript which will an item to your dock. # Such a script can easily be added your login items http://lucidsystems.tk/tools/additemtodock/example_applescripts/ # One example of using login hooks and system to modify the dock at login http://lucidsystems.tk/tools/additemtodock/dock_package # Viewing the additemtodock source code : Once additemtodock is installed, run the following command to list the source code : cat /sbin/additemtodock If you wish to edit the source code, then use the following command : sudo pico /sbin/additemtodock # -- # Lucid Information Systems # http://www.lucidsystems.org