{"repo":"RhetTbull/osxmetadata","free":true,"listed":false,"github":"https://github.com/RhetTbull/osxmetadata","clone":"git clone https://github.com/RhetTbull/osxmetadata.git","description":"Python package to read and write various MacOS extended attribute metadata such as tags/keywords and Finder comments from files. Includes CLI tool for reading/writing metadata.","language":"Python","stars":164,"topics":["python","command-line-tool","command-line","cli","metadata","extended-attributes","macos","mac"],"license":"MIT","category":"cli-tools","readme_excerpt":"osxmetadata What is osxmetadata? osxmetadata provides a simple interface to access various metadata about MacOS / OS X files. Currently supported metadata attributes include tags/keywords, Finder comments, authors, etc. Why osxmetadata? Apple provides rich support for file metadata through the MDItem class and the NSURL getResourceValue:forKey:error: method. However, Apple does not provide a way to easily set much of the metadata. For example, while there is a documented MDItem MDItemCopyAttribute to copy metadata attributes such as kMDItemAuthors, Apple does not provide a public interface to set this data. Other data, such as Finder comments, can only be set through sending AppleScript commands to the Finder and others, like Finder tags can be retrieved but cannot be set through the public API. osxmetadata provides a unified interface to get and set most of the metadata available on your Mac from python. It uses a combination of documented and undocumented APIs to access the metadata. It also provides a simple interface to set Finder tags and Finder comments. MacOS provides some tools to view these various metadata attributes. For example, mdls lists the MDItem Spotlight metadata associated with a file but doesn't let you edit the data. osxmetadata makes it easy to to both view and manipulate the macOS metadata attributes, either programmatically or through an included osxmetadata command line tool. Supported operating systems Only works on MacOS. Tested on macOS 13.5.1 (Ven","default_branch":null,"files":null,"tree":[],"storefront":"/r/RhetTbull","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/RhetTbull/osxmetadata/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}