{"id":30851832,"url":"https://github.com/blackcccat/defaultappchanger","last_synced_at":"2026-05-16T01:32:34.881Z","repository":{"id":296659705,"uuid":"994030626","full_name":"BlackCCCat/DefaultAppChanger","owner":"BlackCCCat","description":"Modify the default opening method for macOS files.  修改macOS某些文件的默认打开方式","archived":false,"fork":false,"pushed_at":"2026-02-06T07:05:58.000Z","size":1261,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-06T15:11:44.252Z","etag":null,"topics":["code-editor","macos","text-editor"],"latest_commit_sha":null,"homepage":"","language":"Python","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/BlackCCCat.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-01T03:34:37.000Z","updated_at":"2026-02-06T07:03:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"65377f64-82cd-455a-8036-3ae20e5c511e","html_url":"https://github.com/BlackCCCat/DefaultAppChanger","commit_stats":null,"previous_names":["blackcccat/defaultappchanger"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/BlackCCCat/DefaultAppChanger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackCCCat%2FDefaultAppChanger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackCCCat%2FDefaultAppChanger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackCCCat%2FDefaultAppChanger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackCCCat%2FDefaultAppChanger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BlackCCCat","download_url":"https://codeload.github.com/BlackCCCat/DefaultAppChanger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackCCCat%2FDefaultAppChanger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33087028,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"ssl_error","status_checked_at":"2026-05-15T20:25:34.732Z","response_time":103,"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":["code-editor","macos","text-editor"],"created_at":"2025-09-07T07:44:38.097Z","updated_at":"2026-05-16T01:32:34.866Z","avatar_url":"https://github.com/BlackCCCat.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n---\n\n# 📂 Default Apps Changer for macOS\n\n一个基于 **PyQt6** 的图形界面工具，用于在 macOS 上快速批量设置文件类型的默认打开方式（依赖 [duti](https://github.com/moretension/duti) 命令行工具）。\n\n---\n\n## ✨ 功能特点\n\n* 自动扫描 `/Applications` 与 `/System/Applications` 中的支持文本/代码编辑类的 App（如 VSCode、TextEdit、Sublime Text 等）\n* 支持按类别（如“基础文本格式”、“编程语言格式”）批量选择文件扩展名\n* 每个类别下的子项以多列布局呈现，支持“全选/取消”、“反选”\n* 更改完成后根据成功与否弹窗反馈详细信息\n* 支持显示 App 图标，提高识别度\n\n---\n\n## 📦 依赖项\n\n确保以下环境已经配置好：\n\n* Python ≥ 3.7\n* PyQt6\n* [duti](https://github.com/moretension/duti)：用于设置 macOS 默认打开方式（可通过 Homebrew 安装）\n\n```bash\nbrew install duti\npip install PyQt6\n```\n\n---\n\n## 🚀 运行方式\n\n- 运行Python脚本\n\n```bash\npython DefaultAppChanger.py\n```\n\n- 通过打包后的app执行\n\n---\n\n## 🖼️ 界面示意\n\n* App 选择框支持显示图标\n* 文件类型分为多个分类，每类下有子项，支持全选、反选\n* 支持滚动区域展示所有内容\n* “更改打开方式”按钮仅在勾选项非空时可用\n* AI生成的图标\n\n---\n\n## 📂 文件类型分类示例\n\n* **基础文本格式**：`.txt`, `.csv`, `.json` 等\n* **编程语言格式**：`.py`, `.cpp`, `.js`, `.html` 等\n* **标记语言格式**：`.md`, `.rst`, `.tex`\n* **其他**：`.gitignore`, `.makefile`, `.plist` 等\n\n---\n\n## ⚠️ 注意事项\n\n* 请确保 `duti` 命令可用（通过终端输入 `duti -h` 验证）\n* 修改默认打开方式后，部分类型可能需重启 Finder 或系统才能生效\n* 仅限 macOS 使用\n\n---\n\n## 📄 License\n\nMIT License\n\n---\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackcccat%2Fdefaultappchanger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblackcccat%2Fdefaultappchanger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackcccat%2Fdefaultappchanger/lists"}