{"id":22005485,"url":"https://github.com/systemsoftware/file-associations-finder","last_synced_at":"2026-04-29T20:02:17.388Z","repository":{"id":265382683,"uuid":"895880611","full_name":"systemsoftware/file-associations-finder","owner":"systemsoftware","description":"Command-line utility to get file associations on macOS","archived":false,"fork":false,"pushed_at":"2024-11-29T05:25:10.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T06:29:11.883Z","etag":null,"topics":["file-associations","filesystem","macos","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/systemsoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-29T05:24:29.000Z","updated_at":"2024-11-29T05:41:20.000Z","dependencies_parsed_at":"2024-11-29T21:03:07.135Z","dependency_job_id":null,"html_url":"https://github.com/systemsoftware/file-associations-finder","commit_stats":null,"previous_names":["systemsoftware/file-associations-finder"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/systemsoftware/file-associations-finder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/systemsoftware%2Ffile-associations-finder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/systemsoftware%2Ffile-associations-finder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/systemsoftware%2Ffile-associations-finder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/systemsoftware%2Ffile-associations-finder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/systemsoftware","download_url":"https://codeload.github.com/systemsoftware/file-associations-finder/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/systemsoftware%2Ffile-associations-finder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32441428,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T18:12:22.909Z","status":"ssl_error","status_checked_at":"2026-04-29T18:11:33.322Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["file-associations","filesystem","macos","swift"],"created_at":"2024-11-30T00:20:00.050Z","updated_at":"2026-04-29T20:02:12.380Z","avatar_url":"https://github.com/systemsoftware.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# File Associations Finder\n\nFileAssociationsFinder is a Swift command-line utility that helps users find macOS applications capable of opening files with a specific file extension. The utility utilizes the `NSWorkspace` and `UniformTypeIdentifiers` frameworks to perform the search.\n\n## Features\n\n- Quickly find apps that can handle a given file extension.\n- Outputs full application paths for easy reference.\n- Gracefully handles cases where no apps are found.\n\n## Requirements\n\n- macOS 11.0 (Big Sur) or later.\n- Swift 5.3 or later.\n\n## Installation\n\n1. Clone the repository or copy the `FileAssociationsFinder.swift` file.\n2. Ensure you have Xcode or Swift command-line tools installed.\n3. Build the project using the Swift compiler or Xcode.\n\n## Usage\n\n1. Open a terminal and navigate to the directory containing `FileAssociationsFinder.swift`.\n2. Compile the program:\n   ```bash\n   swiftc -o FileAssociationsFinder FileAssociationsFinder.swift\n   ```\n3. Run the program with a file extension as an argument:\n   ```bash\n   ./FileAssociationsFinder \u003cfile-extension\u003e\n   ```\n   Replace `\u003cfile-extension\u003e` with the desired file extension (e.g., `txt`, `png`, `pdf`).\n\n### Example\n\n#### Command:\n```bash\n./FileAssociationsFinder txt\n```\n\n#### Output:\n```bash\n/Applications/TextEdit.app\n/Applications/Visual Studio Code.app\n```\n\nIf no applications are found:\n```bash\nNo apps found for extension txt\n```\n\n#### No argument provided:\n```bash\nUsage: ./FileAssociationsFinder \u003cfile-extension\u003e\n```\n\n## How It Works\n\n1. The program accepts a file extension as a command-line argument.\n2. It converts the extension into a Uniform Type Identifier (UTI) using `UTType`.\n3. It queries macOS's `NSWorkspace` to find compatible apps.\n4. Application paths are extracted from the returned URLs and displayed.\n\n## Limitations\n\n- macOS-only utility, as it relies on macOS-specific frameworks.\n\n## License\n\nThis utility is released under the MIT License. Modify and use it freely!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsystemsoftware%2Ffile-associations-finder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsystemsoftware%2Ffile-associations-finder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsystemsoftware%2Ffile-associations-finder/lists"}