{"id":19870607,"url":"https://github.com/yycoder/rename-files","last_synced_at":"2025-09-09T14:39:32.186Z","repository":{"id":128728756,"uuid":"232280039","full_name":"YYCoder/rename-files","owner":"YYCoder","description":"Rename batch of files using JXA 😁","archived":false,"fork":false,"pushed_at":"2023-01-20T07:29:20.000Z","size":16,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-02T08:46:31.803Z","etag":null,"topics":["applescript","file-utility","jxa","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/YYCoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2020-01-07T08:34:32.000Z","updated_at":"2023-12-20T15:06:24.000Z","dependencies_parsed_at":"2023-04-17T01:05:31.376Z","dependency_job_id":null,"html_url":"https://github.com/YYCoder/rename-files","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/YYCoder/rename-files","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YYCoder%2Frename-files","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YYCoder%2Frename-files/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YYCoder%2Frename-files/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YYCoder%2Frename-files/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YYCoder","download_url":"https://codeload.github.com/YYCoder/rename-files/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YYCoder%2Frename-files/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269324717,"owners_count":24398045,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-07T02:00:09.698Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["applescript","file-utility","jxa","typescript"],"created_at":"2024-11-12T16:09:31.161Z","updated_at":"2025-08-07T21:11:21.272Z","avatar_url":"https://github.com/YYCoder.png","language":"TypeScript","readme":"[English](./docs/en.md) | [中文](./docs/cn.md)\n\n# rename-files\nRename batch of files interactively using JXA 😁~\n\n\u003e Inspired by dtinth's [Batch File Rename](https://gist.github.com/dtinth/93e230152a771dcb1ec5).\n\n### Installation\n1. `git clone git@github.com:YYCoder/rename-files.git`: clone this repository\n1. `cd rename-files`: change directory\n1. `npm install`: install dependencies\n1. `yarn build`: bundle typescript files to JXA\n   \n   \u003e `yarn build` will generate a JXA script named `index.scpt` at your current working dictionary.\n\n3. [add it to OS X Service](https://developer.apple.com/library/archive/documentation/LanguagesUtilities/Conceptual/MacAutomationScriptingGuide/MakeaSystem-WideService.html#//apple_ref/doc/uid/TP40016239-CH46-SW1) or you can save it as an app, also just use `osascript` to run it\n\n### Other JXA resources\n* [The JXA Cookbook](https://github.com/JXA-Cookbook/JXA-Cookbook/wiki#table-of-contents)\n\n* [Mac Automation Scripting Guide](https://developer.apple.com/library/archive/documentation/LanguagesUtilities/Conceptual/MacAutomationScriptingGuide/index.html#//apple_ref/doc/uid/TP40016239-CH56-SW1)\n\n* [A Beginners Guide to JXA, JavaScript Application Scripting](https://computers.tutsplus.com/tutorials/a-beginners-guide-to-javascript-application-scripting-jxa--cms-27171)\n\n* [Javascript for Automation Documentation](https://developer.apple.com/library/archive/releasenotes/InterapplicationCommunication/RN-JavaScriptForAutomation/Articles/OSX10-11.html#//apple_ref/doc/uid/TP40014508-CH110-SW1)\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyycoder%2Frename-files","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyycoder%2Frename-files","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyycoder%2Frename-files/lists"}