How do I bash script this one for macOS Monterey?
defaults write com.apple.dock persistent-apps -array
Please advise
Thanks!
Raj.
Dear All,
Sorted, thanks!
#!/bin/sh
user=`ls -la /dev/console | cut -d " " -f 4`
sudo -u $user defaults write com.apple.dock persistent-apps -array
sudo -u $user killall Dock
exit 0
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.