Rename batch of files interactively using JXA 😁~
Inspired by dtinth's Batch File Rename.
It's OS X automation, using Javascript.
For using JXA language, Mac OS X Yosemite is required.
Since OS X 10.10 (Yosemite), Javascript (called Javascript for Automation, or JXA) is also supported for app automation.
-
git clone [email protected]:YYCoder/rename-files.git
: clone this repository -
yarn build
: bundle typescript files to JXAyarn build
will generate a JXA script namedindex.scpt
at your current working dictionary. -
add it to OS X Service or you can save it as an app, also just use
osascript
to run it
-
Press the confirm button, that's it!
-
yarn dev
: bundle typescript files to develop, which will not write bundled file to disk -
yarn build
: bundle and compress typescript files, then write it to disk
Bundling depends on ts-jxa, which is a robust tool to help you develop JXA using typescript.