Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit items in Dock #62

Open
4 of 5 tasks
Darkomen78 opened this issue Oct 6, 2020 · 1 comment
Open
4 of 5 tasks

Edit items in Dock #62

Darkomen78 opened this issue Oct 6, 2020 · 1 comment
Labels
new command Add a new command

Comments

@Darkomen78
Copy link

Darkomen78 commented Oct 6, 2020

  • I made sure this command is not in the commands list
  • I searched and didn't find this command in the listed issues
  • I know this defaults command exists
  • I know this command works on macOS current version
  • I know this command is deprecated on macOS current version
  • Folder: Dock

  • Command: defaults write com.apple.dock 'persistent-apps' -array " "

  • Examples:
    Remove all : defaults write com.apple.dock 'persistent-apps' -array " "

Add app : defaults write com.apple.dock 'persistent-apps' -array-add "<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>FULL APP PATH</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>"
Add folder : defaults write com.apple.dock 'persistent-others' -array-add '<dict><key>tile-data</key><dict><key>arrangement</key><integer>0</integer><key>displayas</key><integer>0</integer><key>file-data</key><dict><key>_CFURLString</key><string>FULL ITEM PATH</string><key>_CFURLStringType</key><integer>0</integer></dict><key>preferreditemsize</key><integer>-1</integer><key>showas</key><integer>0</integer></dict><key>tile-type</key><string>directory-tile</string></dict>'
Options for "displayas" are 0 for stack view or 1 for folder icon, options for "showas" are 0 for auto, 1 for fan view, 2 for grid view or 3 for list view.

@Darkomen78 Darkomen78 added the new command Add a new command label Oct 6, 2020
@tboerger
Copy link

Maybe it also makes sense to reference to dockutil which is pretty flexible to manage the dock items.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new command Add a new command
Projects
None yet
Development

No branches or pull requests

2 participants