So this took a little bit of work but I have a Command Line script that works for me. I am on a Mac and I’m using OhMyZshell. So, you may need to find something that works for your setup.
-
I created an alias that opens up Aseprite. This is setup in OhMyZShell within
~/.oh-my-zsh/custom/aliases.zsh
I added this alias so I could run Aseprite anywhere:
alias ase=’/Applications/Aseprite.app/Contents/MacOS/aseprite’ -
You can loop over all files in a directory by running:
for FILE in *(.); do echo $FILE; done -
I took this and was able to run this:
for item in *(.); do ase -b $item --scale 2 --save-as scaled/$item ; done
This will loop over all items in the folder and scale it by 2 (That can be changed). This saves all of those files to have the same name but puts them into the /scaled directory.