Launch a .jsx script in After Effects from Terminal.
https://gfxhacks.com/quick-setup-for-after-effects-scripting/
Requires 2 arguments:
- AE version ID e.g. 2021, or "(Beta)" - will check to see if installed on system first.
- Script file (.jsx) - just drag and drop in Terminal.
sh aesl.sh ID path/to/script.jsxalternatively, make the file executable:
chmod +x aesl.shThen copy/move it to the /usr/local/bin directory:
sudo mv aesl.sh /usr/local/bin/aeslIf using a custom directory, make sure it's indexed in the PATH -
add this line to the .bashrc config file located in the Home directory (~), if using Bash; or .zshrc if using zsh:
If the config file doesn't exist, create it first.
export PATH=$PATH:/custom/dirNow the script can simply be run using:
aesl ID script.jsx