Open cslosiu opened 1 year ago
Running into the same issue on Ventura 13.3.1 (22E261)
Is there any way to debug this?
Is working for me on Ventura 13.3.1 with the same command
Same here, ventura 13.6.3, Microsoft Word 16.81, python 3.11.6, mac m2 pro docx2pdf r2024.docx r2024.pdf 0%| | 0/1 [00:00<?, ?it/s]
Same. python 3.11.2, Mac OS 14.3. Is there any way to do ?
My solution was to install a windows 12 in a UTM virtual Machine, install Word and do the conversion there :(
I finally found what the problem was:
The System Events was not allowed for Terminal Automation. After activating it, doc2pdf works now.
It's found in the System Settings / Privacy & Security / Automation
Why does it need control/access to system events?
Why does it need control/access to system events?
If you have a look at the convert.jxa you'll see why. But mainly to find the process of Word (and to communicate with it) and to look for files and folders.
SystemEvents.processes["Microsoft Word"].visible = false;
const files = SystemEvents.folders .byName(args.inputPath) .diskItems.name() .sort();
Runs, immediately exit. Command line dump: