You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First off, thanks very much for this script. It just saved me a lot of time.
I used it in macOS 13.4.1.
The one issue I encountered it that each file required Word to open and then a dialogue would pop up in Word saying it needs permission to access the file. I would then have to select the file in Word, and the conversion would succeed. Word would then close. This repeated for every file.
Do you know of any way around this?
One thing I tried was to grant Microsoft Word Full Disk Access but that didn't help.
The text was updated successfully, but these errors were encountered:
I've tried both solutions and neither is working. I've also given the library disk access
#!/bin/bash
# Function to recursively iterate over files
process_files() {
for file in "$1"/*; do
if [ -d "$file" ]; then
process_files "$file"
elif [ -f "$file" ] && [[ "$file" == *.doc ]]; then
doc2docx --keep-active "$file"
fi
done
}
# Check if directory is provided as an argument
if [ -z "$1" ]; then
echo "Usage: $0 <directory>"
exit 1
fi
# Start processing files from the given directory
process_files "$1"
First off, thanks very much for this script. It just saved me a lot of time.
I used it in macOS 13.4.1.
The one issue I encountered it that each file required Word to open and then a dialogue would pop up in Word saying it needs permission to access the file. I would then have to select the file in Word, and the conversion would succeed. Word would then close. This repeated for every file.
Do you know of any way around this?
One thing I tried was to grant Microsoft Word
Full Disk Access
but that didn't help.The text was updated successfully, but these errors were encountered: