4/19/2024 0 Comments Dock where it deletes any appSet theDict to current application's NSDictionary's dictionaryWithContentsOfFile:thePath TheDict's writeToFile:thePath atomically: true Set thePath to thePath's stringByExpandingTildeInPath() Set thePath to current application's NSString's stringWithString:posixPath Set theDict to current application's NSDictionary's dictionaryWithDictionary:theRecord On saveRecord:theRecord toPlistAt:posixPath My saveRecord:dockRec toPlistAt:prefsFile Set |persistent-apps| of dockRec to newAppRecord If |file-label| of |tile-data| of anAppRecord is not in removeApps then copy contents of anAppRecord to end of newAppRecord Set appRecords to |persistent-apps| of dockRec Set prefsFile to (POSIX path of ( path to preferences from user domain)) & "" Good to know this is something it can potentially do. What are you trying to accomplish?" <- that's exactly how I got here.Ĭamelot - thank you for the suggestion! That looks like a more supported, official path, but purchasing an MDM system for the company to solve this one issue is way to big of a "solution." We've evaluated MDM a few times before, and may eventually do it. "I strongly suggest you review what your high-level goals are.In this case, the section of the Dock Preferences file I'm editing appears to have been consistent for at least 17 years, so I'll take my chances. Yes, Apple could theoretically break it at any time, but that applies to most of what I do for a living. It's editing a text file and restarting the Dock. and several installers from different developers do it. As Camelot pointed out, Kandji can do this, so can your own suggestion of dockutil.I think it's just going to cause confusion. or users will add the "Real" version to their Dock once it's running and have both. and they'll quit the "Dock" version and not understand why the app is still open. But then when they run the Dock Version, another identical icon for the "Real" version is also going to show up in their Dock. Not all users want the same apps in their docks, so the "Real" copies of the apps still need to be executables, not just code run by the "Dock" version. That seemed good at first, but it seemed to me that it gets complicated really fast. I did consider having permanent apps, with the same name as the real apps, that can live in the Dock where the only thing that "App" actually does is to check what branch they're on and run the correct version.Had to work on other things for a bit, but with some better Googling, it actually didn't take too long to get working.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |