Skip to content

Simple GUI application to view/edit extended file attributes on macOS

License

Notifications You must be signed in to change notification settings

perez987/Xattr-Editor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

109 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xattr Editor

Platform Xcode Swift

“Spanish

SwiftUI Version

This project has been migrated from XIB storyboard to SwiftUI, providing a modern UI framework with Liquid Glass effect support for macOS 15+. The app now requires:

  • Xcode 15 or later
  • macOS 14.0 or later
  • Swift 5.9

Preface

Xattr Editor is a simple GUI application to view/edit extended file attributes on macOS, for those users who might find a graphical interface more convenient—where they can drag and drop a file and view its extended attributes—rather than opening Terminal and interacting with xattr. With the added advantage that attributes can be edited one by one, adding, modifying, or deleting any of them.

The drawback of Xattr Editor is that, as an application downloaded from the internet, it also displays the Gatekeeper warning on its first run. This is unavoidable since the app is only ad-hoc signed and not notarized. This doesn't happen if you download the source code, compile the app using Xcode, and save the product for regular use.

This document expands on the information about the security warning in files downloaded from the Internet, and 3 ways to fix it: Security and Privacy, xattr command line tool and Xattr Editor.

Xattr Editor how-to

It's really simple to use. When you start the app, a window appears where you can drag and drop files.

Drop file window
Drop window no Liquid Glass

You can also use the File >> Open menu (Cmd + O), which allows you to select a file instead of dragging it onto the window. Either way, the main window opens with the extended attribute(s) (if any) and their properties.

Attributes window
Attributes window no Liquid Glass

You can add, rename, delete, or modify properties of existing attributes.

When removing an attribute, the user receives feedback.

Language selector

Languages list
Languages

Credits

rcsiko is the author of the original repository xattr-editor, which hasn't been updated in 7 years. I've created this fork based on the original, which contains the most important part of the source code.

Changelog oy my additions:

  • Add app icon in Assets.xcassets
  • Fix swiftlint warnings and refactor Swift code
  • Migrate storyboard project to SwiftUI
  • Add user feedback (alert) for attribute removal
  • Fix error warning in attribute renaming
  • Clear the attribute value field when deleting attributes
  • Re-show drop file window when closing attribute inspector
  • Improve README and documentation
  • Update screenshots
  • Add language support: German, English, Spanish, French and Italian (default to English)
  • Added language selector
  • Add Liquid Glass support for macOS 15+ with backward compatibility for macOS 14.

About

Simple GUI application to view/edit extended file attributes on macOS

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Swift 100.0%