Posted on 03-08-2015 11:04 PM
Just wondering if anyone can give me some ideas of the easiest way to push out a generic sidebarlists.plist so all network users will grab this at login?
Having some issues mapping 10.10.2 to sidebar folders and I can manually tick the boxes which fixes the mapping. Thought this would be the easiest way to fix this issue
settings should reflect image
Posted on 03-08-2015 11:46 PM
@c0up3 Would you want this set at every login or just once?
Posted on 03-09-2015 01:30 AM
Am thinking would need to be every login as I dont want these to change
Posted on 03-09-2015 07:04 AM
I would suggest if you want this on login. Create a LaunchAgent plist to execute a package or script reconfiguring the sidebar.
Posted on 03-09-2015 12:39 PM
Yeah that's what I was thinking. Any other ideas though?
Posted on 03-10-2015 11:27 AM
Here is a script to modify the Sidebar for users. Be sure to set line 10 to True if you want to use with Casper.
Posted on 03-10-2015 11:40 AM
Thanks @matt4836 this script is amazing! I've been looking for something like this for ages. Never had much luck with the sidebar preferences.
Posted on 03-10-2015 07:11 PM
@davidacland I already made some important changes to it.
Added:
When run as Root (Casper) It now modifies the Logged in User’s Sidebar (requires a log out)
Test to make sure File Exists
Ability to specify Current Finder User’s Home Directory as a variable. (Use HOMEDIR as the variable). Example:
script.py last HOMEDIR/Music To add the user's Music Folder
Posted on 03-11-2015 01:00 AM
Nice one. Thanks again for sharing!
Posted on 04-01-2015 03:05 AM
Posted on 04-01-2015 07:29 AM
Hey @matt4836 , your links are broken for me. Can you update please?!
Posted on 04-01-2015 07:37 AM
Weird.
GitHub.com/matt4836
Posted on 04-01-2015 07:59 AM
Thanks - this is going to be really helpful!
Posted on 05-01-2015 10:14 AM
That script sounds like it's made to do what I want to do. Where might I start in learning how to use it?
Posted on 09-01-2015 04:13 AM
This script would really be helpful to me. Similarly to tuinte I don't really know where to start. All I need to do for now is remove "Connected Servers" from a group of Macs and a lot of this script means nothing to me :( I use Apple Server with Profile Manager and not the Casper Suite. If anybody could help point me in the right direction it would me massively appreciated. Thanks.
Posted on 10-28-2015 07:21 AM
How do I use this script with Casper - I don't know much about how to implement python scripts in OS X. Does it aid Casper in setting the sidebar or do you change items in the script to manually give the sidebar the contents you want?
Posted on 10-28-2015 07:27 AM
You would add the script to Casper, then create a policy to run it, adding the necessary variables.
In the policy script variables, you can use the parameters to add the extra info, for example:
Parameter 4 - last
Parameter 5 - HOMEDIR
This would add the home directory, last in the list of the finder sidebar.
Posted on 10-28-2015 09:10 AM
Ah thanks David, thats given me a good key to work from. To the dev machine!
Posted on 10-30-2015 09:55 AM
There is also this.
Posted on 10-31-2015 04:24 AM
Thanks @bentoms this looks even more intuitive. I'm going to try this out next week!
Posted on 11-09-2015 03:53 PM
Looks like the change_sidebar_list script broke with El Cap....
(Changes to python...)
Anyone have enough python experience to know how to fix it?
(I really need to get my python on....)