I have been using a great open-source python script by GitHub user @hanikesn (see below) that converts a single WOFF file back into OTF format via command line (Terminal on
You are using zsh
, aren't you? so to loop on your WOFF files you could to do
for f in *.woff ; /complete/path/to/your/script.py $f
If you want create an Drag&drop app, you could:
Filter Finder Items
actionextenstion is
woff conditionRun Shell Script
actionPass input
popup to as argumentswoff2otf.py
into the place of the echo (you will get it's full path name)woff2otf.app
Just drag the woff
files into the application icon and it should convert them. I can't test it, because i havent installed python3
.
The final app should be as in the following screenshot:
EDIT:
If your python3
command isn't in the standard command search $PATH
, you must change the line:
/path/to/the/woff2otf.py "$f"
to/path/to/your/python3 /path/to/the/woff2otf.py "$f"
I installed python3
using anyenv
- e.g. it wont help you. Therefore my python3 is:
$ type python3
python3 is /opt/anyenv/envs/pyenv/shims/python3
so the line in the shell script (for me) looks like:
/opt/anyenv/envs/pyenv/shims/python3 ~/bin/woff2otf.py "$f"
But, your installation is surely different.
Also could help: