All Projects → danthedeckie → Finder_colors

danthedeckie / Finder_colors

Licence: mit
Set the color of files/folders for OSX Finder from the command line.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Finder colors

Esp32 Http Update
Clone of https://github.com/esp8266/Arduino/tree/master/libraries/ESP8266httpUpdate for ESP32
Stars: ✭ 25 (-19.35%)
Mutual labels:  deprecated
Osx Mac Menubar App
Menubar application for Mac
Stars: ✭ 11 (-64.52%)
Mutual labels:  osx
Prey Bash Client
DEPRECATED - Project no longer supported, please consider using https://github.com/prey/prey-node-client instead
Stars: ✭ 882 (+2745.16%)
Mutual labels:  deprecated
Madalynnplumbundle
The deploy bundle using Plum for Symfony2
Stars: ✭ 26 (-16.13%)
Mutual labels:  deprecated
Sqlite Provider
SQLite3 provider for Vapor
Stars: ✭ 11 (-64.52%)
Mutual labels:  deprecated
Grunt Csswring
DEPRECATED. Minify CSS files using PostCSS-based CSSWring
Stars: ✭ 12 (-61.29%)
Mutual labels:  deprecated
Doctrinemigrations
[DEPRECATED] Use Phinx instead
Stars: ✭ 24 (-22.58%)
Mutual labels:  deprecated
Overwatch Js
Overwatch NodeJS API : Retrieve informations about heroes/players from Overwatch Official Website
Stars: ✭ 27 (-12.9%)
Mutual labels:  deprecated
Deobfuscator
[Not work] Deobfuscate obfuscated binaries!
Stars: ✭ 11 (-64.52%)
Mutual labels:  deprecated
Startssl api
DEPRECATED A python/CLI API for some StartCom StartSSL functions
Stars: ✭ 14 (-54.84%)
Mutual labels:  deprecated
Sxkdvm
SXKDVM - OSX Docker KVM / Run an OSX KVM virtual machine inside a Docker container.
Stars: ✭ 840 (+2609.68%)
Mutual labels:  osx
Ng Suggest
AngularJS module to provide Typeahead via OpenSearch Suggestions
Stars: ✭ 9 (-70.97%)
Mutual labels:  deprecated
Requery
Store e run queries on database to help system manager of a Django website
Stars: ✭ 12 (-61.29%)
Mutual labels:  deprecated
Otc Tools
(Deprecated) Simple bash/curl/jq based command line tool using the OpenStack and OTC specific REST APIs.
Stars: ✭ 26 (-16.13%)
Mutual labels:  deprecated
Kawaiify
OSX theming script, WIP
Stars: ✭ 20 (-35.48%)
Mutual labels:  osx
Django Jquery Widgets
This project is no longer maintained.
Stars: ✭ 24 (-22.58%)
Mutual labels:  deprecated
Go Convexhull
Implementation of Graham Scan algorithm for Convex Hull in GO with visualization
Stars: ✭ 12 (-61.29%)
Mutual labels:  osx
Os Tmpdir
[DEPRECATED] Node.js os.tmpdir() ponyfill
Stars: ✭ 31 (+0%)
Mutual labels:  deprecated
Mysimbl
📦 Plugin manager for macOS
Stars: ✭ 909 (+2832.26%)
Mutual labels:  osx
Alfred Iconfinder Search
Alfred 3 workflow for Iconfinder instant search
Stars: ✭ 14 (-54.84%)
Mutual labels:  osx

================= finder_colors.py

Set or inspect the colors that Apple OSX Finder assigns to files or folders.

Usable as a standalone script, or it can be imported as a python module.

================= Standalone Usage:

To find out the color of a file or folder: ::

finder_colors.py $filename

returns: ::

filename    colorname

You can check multiple files at once, with: ::

finder_colors.py $file1 $file2 $file3

or from the shell, wildcards ::

finder_colors.py *.txt

To set the color: ::

finder_colors.py $color $filename

You can assign multiple files at once by: ::

finder_colors.py $color $filename $filename2 $filename3 $etc

so in a shell: ::

finder_colors.py red *.py

would set all python scripts to red.

Options for colors are: ::

none, gray, green, purple, blue, yellow, red, orange

If you're worried that you may have files in the list which could be valid color names, then simply invoke using path names ( ./filename rather than filename, or with wildcards ./* rather than *).

This is good practice in general.

=================== As a python module:

After installing (by PIP): ::

>>> import finder_colors
>>> finder_colors.get('/path/to/file')
'none'

>>> finder_colors.set('/path/to/file', 'red')
'\x00........'

The value returned by set(pathname, color) is the complete com.apple.FinderInfo attribute list of that file. You can probably ignore it.

============= Installation:

Either with pip ::

pip install finder_colors

Or simply download the finder_colors.py script, and put it somewhere in your $PATH (usually /usr/local/bin works...) and run ::

chmod +x /usr/local/bin/finder_colors.py

======== Licence:

MIT Licenced, so pretty much do what you want with it. Here's the details:

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Enjoy!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].