Open mpermann opened 2 years ago
Yes definitely. I’ve had to script around this myself.
I was thinking there might be other ways to help with this too, like a save and restore.
Let me know if you have ideas.
Thanks Michael
Kyle
On Jun 3, 2022, at 9:53 PM, Michael Permann @.***> wrote:
Since macOS Monterey 12.3, Apple is automatically removing icons from the dock if an application is moved to the trash or deleted programmatically. There are instances where you may need to remove an app from the computer before re-installing it. If the app has a shortcut on the dock, it would be great to locate the position of the shortcut and save that so it can be used to add the shortcut back in the same position. This would minimize any disruption to the end user.
Would you consider adding the following new option: usage: dockutil --findindex
[ plist_location_specification ] This usage would function the same as the --find option, but would return the positional index of the icon so it can be used to help add the shortcut back to the dock in the same relative location. Thanks for considering my feature request!
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.
Currently working on a Python script that would benefit greatly from this kind of feature.
The approach I'm taking at the moment is to capture dockutil --list
and parsing that output into a list of dicts, but as I was doing this it made me think how helpful it would be for --list
to output JSON or another structured data format, including the indexes of the dock items.
Yes a json output sounds like a good idea 👍
Kyle
Sent from Mobile
On Aug 29, 2022, at 7:11 PM, Mac Justice @.***> wrote:
Currently working on a Python script that would benefit greatly from this kind of feature.
The approach I'm taking at the moment is to capture dockutil --list and parsing that output into a list of dicts, but as I was doing this it made me think how helpful it would be for --list to output JSON or another structured data format, including the indexes of the dock items.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.
Since macOS Monterey 12.3, Apple is automatically removing icons from the dock if an application is moved to the trash or deleted programmatically. There are instances where you may need to remove an app from the computer before re-installing it. If the app has a shortcut on the dock, it would be great to locate the position of the shortcut and save that so it can be used to add the shortcut back in the same position. This would minimize any disruption to the end user.
Would you consider adding the following new option:
usage: dockutil --findindex <dock item label> [ plist_location_specification ]
This usage would function the same as the
--find
option, but would return the positional index of the icon so it can be used to help add the shortcut back to the dock in the same relative location. Thanks for considering my feature request!