Welcome to the Power Users community on Codidact!
Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.
Change finder view for a specific folder programmatically
I'm trying to change the view for a specific folder in finder from the command line. Specifically, I want to switch to icon view and set the icon size to 512 pixel.
Currently, my approach is to use an Automator.app workflow with a "Set Folders Views" action
and then call the workflow from the command line with
automator name_of_my_workflow.workflow
this works mostly fine and sets the view and icon size as desired, but also changes the background colour of the finder. The action forces me to either choose a white background, which will be bad in dark mode, or a specific colour, which will at best look meh in all modes and at worst bad in either dark or light mode.
Are there any other ways to change the view of a specific folder or are there ways how to change the background colour of a specific folder back to default from the command line?

0 comment threads