Apparently there is an applescript which allows one to change the background color of a finder window. Is there any objective-c API I can call to change the color and/or set the Finder folder related to a path to show a specific background image? I would like to create a git hook which changes the finder folder of a directory to red when on a specific branch (to show visually I should not make changes to that branch).
Asked
Active
Viewed 380 times
2 Answers
1
Here, I found how to change ALL finder windows inside a choosen folder, use this here:
tell application "Finder"
set ChosenFolder to (choose folder)
set TheseFolders to (every folder of entire contents of ChosenFolder)
repeat with CounterA from 1 to (count of TheseFolders)
set background color of icon view options of window of item CounterA of TheseFolders to (choose color)
end repeat
end tell
Hope this helped!

YeaTheMans
- 1,005
- 8
- 19
0
I am sorry but I only know how to do it in Applescript:
With Image
tell application "Finder" to set the desktop picture to (choose file of type "png")
Here is how to do it with a Solid Color
tell application "Finder" to set the desktop picture to "Library:Desktop Pictures:Solid Colors:(Color Name)"
List of Color Names:
- "Solid Aqua Blue.png"
- "Solid Aqua Dark Blue.png"
- "Solid Aqua Graphite.png"
- "Solid Grey Dark.png"
- "Solid Grey Light.png"
- "Solid Grey Medium.png"
- "Solid Grey Pro Dark.png"
- "Solid Grey Pro Ultra Dark.png"
- "Solid Kelp.png"
- "Solid Lavender.png"
- "Solid Mint.png"
- "Solid White.png"

YeaTheMans
- 1,005
- 8
- 19
-
Thanks but this is not a question about changing the desktop wallpaper picture, that is well known. I'm looking for info on changing individual finder folders/windows which are not the desktop, like ~/Library. – Grzegorz Adam Hankiewicz Oct 21 '15 at 10:22
-
Oh sorry, I dont know that but I'll try and find it for you – YeaTheMans Oct 21 '15 at 23:58