<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									macOS - Programmatically add an application persistent to the Dock - MacOS X Software				            </title>
            <link>https://www.tweaking4all.com/forum/macos-x-software/macos-programmatically-add-an-application-persistent-to-the-dock/</link>
            <description>Tweaking4All.com Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Thu, 12 Mar 2026 19:57:59 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: macOS - Programmatically add an application persistent to the Dock</title>
                        <link>https://www.tweaking4all.com/forum/macos-x-software/macos-programmatically-add-an-application-persistent-to-the-dock/#post-4826</link>
                        <pubDate>Mon, 27 Mar 2023 09:24:02 +0000</pubDate>
                        <description><![CDATA[Thank you for posting an alternative - it is much appreciated! 👍 
As much as I do appreciate suggestions that work - this one may not be useful for those who want to use this to install the...]]></description>
                        <content:encoded><![CDATA[<p>Thank you for posting an alternative - it is much appreciated! 👍 </p>
<p>As much as I do appreciate suggestions that work - this one may not be useful for those who want to use this to install their self-developed application. Most regular users will not have HomeBrew installed, and as a developer I can and will not expect this from a user either.</p>
<p>On that note: as a developer I do not even have HomeBrew installed, just to avoid that I overlook certain HomeBrew dependencies.</p>]]></content:encoded>
						                            <category domain="https://www.tweaking4all.com/forum/macos-x-software/">MacOS X Software</category>                        <dc:creator>Hans</dc:creator>
                        <guid isPermaLink="true">https://www.tweaking4all.com/forum/macos-x-software/macos-programmatically-add-an-application-persistent-to-the-dock/#post-4826</guid>
                    </item>
				                    <item>
                        <title>macOS - Programmatically add an application persistent to the Dock</title>
                        <link>https://www.tweaking4all.com/forum/macos-x-software/macos-programmatically-add-an-application-persistent-to-the-dock/#post-4769</link>
                        <pubDate>Wed, 08 Mar 2023 12:36:52 +0000</pubDate>
                        <description><![CDATA[A friend was looking for a way to programmatically add an application to the Dock.Couldn&#039;t find a proper API for it (probably does exist, suggestions are welcome), but the following shell sc...]]></description>
                        <content:encoded><![CDATA[<p>A friend was looking for a way to programmatically add an application to the Dock.<br />Couldn't find a proper API for it (probably does exist, suggestions are welcome), but the following shell script did the trick (using Xcode as an example):</p>
<pre contenteditable="false">#!/bin/bash
myapp="//Applications//Xcode.app"

defaults write com.apple.dock persistent-apps -array-add "&lt;dict&gt;&lt;key&gt;tile-data&lt;/key&gt;&lt;dict&gt;&lt;key&gt;file-data&lt;/key&gt;&lt;dict&gt;&lt;key&gt;_CFURLString&lt;/key&gt;&lt;string&gt;$myapp&lt;/string&gt;&lt;key&gt;_CFURLStringType&lt;/key&gt;&lt;integer&gt;0&lt;/integer&gt;&lt;/dict&gt;&lt;/dict&gt;&lt;/dict&gt;"

osascript -e 'tell application "Dock" to quit'
osascript -e 'tell application "Dock" to activate’</pre>
<p>Source: <a href="https://stackoverflow.com/questions/13451234/programmatically-add-application-icon-to-dock-on-install" target="_blank" rel="noopener">StackExchange</a></p>]]></content:encoded>
						                            <category domain="https://www.tweaking4all.com/forum/macos-x-software/">MacOS X Software</category>                        <dc:creator>Hans</dc:creator>
                        <guid isPermaLink="true">https://www.tweaking4all.com/forum/macos-x-software/macos-programmatically-add-an-application-persistent-to-the-dock/#post-4769</guid>
                    </item>
							        </channel>
        </rss>
		