{"id":32146837,"url":"https://github.com/aerobounce/approle.swift","last_synced_at":"2026-02-21T10:32:03.059Z","repository":{"id":63901428,"uuid":"450119820","full_name":"aerobounce/approle.swift","owner":"aerobounce","description":"🖇  CLI to set defalut application for UTIs and Extensions","archived":false,"fork":false,"pushed_at":"2022-03-17T09:18:15.000Z","size":38,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-26T13:49:31.757Z","etag":null,"topics":["macos","swift","uniform-type-identifier"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aerobounce.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}},"created_at":"2022-01-20T14:00:50.000Z","updated_at":"2024-01-18T21:09:49.000Z","dependencies_parsed_at":"2023-01-14T12:45:23.461Z","dependency_job_id":null,"html_url":"https://github.com/aerobounce/approle.swift","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/aerobounce/approle.swift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aerobounce%2Fapprole.swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aerobounce%2Fapprole.swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aerobounce%2Fapprole.swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aerobounce%2Fapprole.swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aerobounce","download_url":"https://codeload.github.com/aerobounce/approle.swift/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aerobounce%2Fapprole.swift/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29623598,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T13:04:20.082Z","status":"ssl_error","status_checked_at":"2026-02-19T13:03:33.775Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["macos","swift","uniform-type-identifier"],"created_at":"2025-10-21T08:30:42.326Z","updated_at":"2026-02-21T10:32:03.054Z","avatar_url":"https://github.com/aerobounce.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# approle.swift\n\n[![][bagde-swift-versions]][swiftpackageindex]\n[![][bagde-platforms]][swiftpackageindex]\n[![][bagde-tag]][tags]\n\nCLI to associate UTI and Extension to an application.\\\nStand alone executable Swift program.\n\n## Install\n\n```sh\nbrew install aerobounce/tap/approle\n```\n\n## Usage\n\n#### Print bundle identifier for an Application Name.\n\n```sh\napprole id \u003cApplication Name\u003e\n```\n\n#### Print UTIs associated to Extensions.\n\n```sh\napprole uti \u003cExtension\u003e...\n```\n\n#### Print filtered list of UTIs declared in system.\n\n```sh\napprole list [Conforming UTI...] [!Non-Conforming UTI...]\n```\n\n#### Print UTI tree of Object Path.\n\n```sh\napprole tree \u003cObject Path\u003e\n```\n\n#### Set an identifier to UTIs / Extensions as default role handler (All Roles).\n\n```sh\napprole set \u003c(Application Name | Bundle Identifier)\u003e \u003c(UTI | Extension)\u003e...\n```\n\n#### Show help.\n\n```sh\napprole help\n```\n\n## Examples\n\n#### Get BundleIdentifier of an Application\n\n```sh\n\u003e approle id TextEdit\n```\n\n```sh\ncom.apple.TextEdit\n```\n\n```sh\n\u003e approle id Xcode\n```\n\n```sh\ncom.apple.dt.Xcode\n```\n\n#### Get UTIs from extensions\n\n```sh\n\u003e approle uti sh py rb\n```\n\n```sh\npublic.shell-script # .sh\npublic.python-script # .py\npublic.ruby-script # .rb\n```\n\n#### List all UTIs matching\n\n```sh\n# List all UTIs which conform to `public.archive` excluding UTIs conform to `public.disk-image`.\n\u003e approle list \"public.archive\" \"!public.disk-image\"\n```\n\n```sh\ncom.winzip.zipx-archive\norg.tukaani.lzma-archive\npublic.lzip-archive\npublic.lzip-tar-archive\npublic.lzop-archive\npublic.lzop-tar-archive\npublic.lrzip-archive\npublic.lrzip-tar-archive\n...\n```\n\n#### Print UTI tree of an object\n\n```sh\n\u003e approle tree ./example.txt\n```\n\n```sh\npublic.plain-text\npublic.text\npublic.data\npublic.item\npublic.content\n```\n\n```sh\n\u003e approle tree ./example.md\n```\n\n```sh\nnet.daringfireball.markdown\npublic.plain-text\npublic.text\npublic.data\npublic.item\npublic.content\n```\n\n#### Set default application for UTI / Extension\n\n```sh\n\u003e approle set Xcode sh public.python-script rb\n```\n\n```sh\nSucceeded: com.apple.dt.Xcode -\u003e public.shell-script (.sh)\nSucceeded: com.apple.dt.Xcode -\u003e public.python-script\nSucceeded: com.apple.dt.Xcode -\u003e public.ruby-script (.rb)\n```\n\n#### Read from stdin\n\n```sh\napprole set Xcode \u003c\u003c EOF\nc h hh m mm\nswift\nEOF\n```\n\n```sh\nSucceeded: com.apple.dt.Xcode -\u003e public.c-source (.c)\nSucceeded: com.apple.dt.Xcode -\u003e public.c-header (.h)\nSucceeded: com.apple.dt.Xcode -\u003e public.c-plus-plus-header (.hh)\nSucceeded: com.apple.dt.Xcode -\u003e public.objective-c-source (.m)\nSucceeded: com.apple.dt.Xcode -\u003e public.objective-c-plus-plus-source (.mm)\nSucceeded: com.apple.dt.Xcode -\u003e public.swift-source (.swift)\n```\n\n#### Use UTI list to set default application\n\n```sh\n# Set Xcode as default application for all the UTIs conform to `public.source-code`.\napprole list \"public.source-code\" | approle set Xcode\n```\n\n#### Use UTI tree to set default application\n\n```sh\n# Better to skip too generic UTIs.\napprole tree ./example.md |\n    grep -v -E 'public.(item|folder|directory|data|content)' |\n    approle set Xcode\n```\n\n\n[tags]: https://github.com/aerobounce/approle.swift/tags\n[swiftpackageindex]: https://swiftpackageindex.com/aerobounce/approle.swift\n\n[bagde-swift-versions]: https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Faerobounce%2Fapprole.swift%2Fbadge%3Ftype%3Dswift-versions\n[bagde-platforms]: https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Faerobounce%2Fapprole.swift%2Fbadge%3Ftype%3Dplatforms\n[bagde-tag]: https://img.shields.io/github/v/tag/aerobounce/approle.swift?display_name=tag\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faerobounce%2Fapprole.swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faerobounce%2Fapprole.swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faerobounce%2Fapprole.swift/lists"}