@Macuser1810 Just to verify, you used Settings->Self Service->Branding to change the Self Service app name to "Jamf Self Service.app"?
@sdagley I did not, I went there but it showed for IOS or Ipad and not MacOS. Do i still need to set this piece up first before deploying the software
If you're ever not sure on the correct path, drag the program from the Applications folder in Finder to a Terminal Window, it will give you the current path. You could also right click on the application in the Applications folder and choose Get Info for the path.
Your example has an extra slash. Should be something like
file://Applications/Self Service.app
@Macuser1810 If you didn't customize the name, then what you need for the Dock item is file:///Applications/Self%20Service.app/
- Jamf not part of the app name by default.
Weird, i just edited, changed the name to what you gave me. Then changed it back as i noticed that it was actually named Jamf Self Service.app on other machines as well. Then i saved it and pushed it again, it worked.
Dont know what changed but really appreciate your help once again!
@Macuser1810 Good to hear you got it working, but it sounds like someone has customized the Self Service app name for your JSS. You can check that by going to the Settings page of your JSS console, selecting the macOS icon in the Self Service section, then selecting the Branding tab.
Guys, sorry to reopen the thread. I've macOS of 13.4.1(c) and trying to deploy the customised dock using
the below script. When I manually execute the script in terminal, it is getting executed successfully
but nothing appearing in the dock even after kill the dock. Kindly advice.
#!/bin/zsh
# dockutil path
dockutil="/usr/local/bin/dockutil"
# Exit if Dockutil is not installed
if [[ ! -f ${dockutil} ]]; then
echo "dockutil is not installed. Existing..."
exit 1
fi
# Get major macOS Version
os_version=$(sw_vers -productVersion | awk -F. '{print $1}')
# Wait for the Dock
while ! pgrep -x "Dock" >/dev/null 2>&1; do
echo "Waiting for Dock..."
sleep 1
done
# Get the username of the currently logged in user
username=$(scutil <<< "show State:/Users/ConsoleUser" | awk '/Name
&& ! /loginwindow/ { print $3 }')
# Cleanup Dock
/usr/local/bin/dockutil --remove all --no-restart /Users/"${username}"
# Add applications
/usr/local/bin/dockutil --add "/Applications/Self Service.app" --no-restart /Users/"${username}"
/usr/local/bin/dockutil --add "/System/Applications/Launchpad.app" --no-restart /Users/"${username}"
if [[ ${os_version} -ge 13 ]]; then
/usr/local/bin/dockutil --add "/System/Volumes/Preboot/Cryptexes/App/System/Applications/Safari.app" --no-restart /Users/"${username}"
else
/usr/local/bin/dockutil --add "/Applications/Safari.app" --no-restart /Users/"${username}"
fi
/usr/local/bin/dockutil --add "/Applications/Google Chrome.app" --no-restart /Users/"${username}"
/usr/local/bin/dockutil --add "/Applications/Firefox.app" --no-restart /Users/"${username}"
/usr/local/bin/dockutil --add "/Applications/Microsoft Word.app" --no-restart /Users/"${username}"
/usr/local/bin/dockutil --add "/Applications/Microsoft Excel.app" --no-restart /Users/"${username}"
/usr/local/bin/dockutil --add "/Applications/Microsoft PowerPoint.app" --no-restart /Users/"${username}"
/usr/local/bin/dockutil --add "/Applications/Microsoft Outlook.app" --no-restart /Users/"${username}"
/usr/local/bin/dockutil --add "/Applications/Microsoft Teams.app" --no-restart /Users/"${username}"
/usr/local/bin/dockutil --add "/Applications/Microsoft OneNote.app" --no-restart /Users/"${username}"
if [[ ${os_version} -ge 13 ]]; then
/usr/local/bin/dockutil --add "/System/Applications/System Settings.app" --no-restart /Users/"${username}"
else
/usr/local/bin/dockutil --add "/System/Applications/System Preferences.app" --no-restart /Users/"${username}"
fi
# Add Downloads
/usr/local/bin/dockutil --add '~/Downloads' --display folder --no-restart /Users/"${username}"
/usr/local/bin/dockutil --add '/Applications' --display folder --sort name /Users/"${username}"
sleep 5
sudo killall Dock