How do I "bulk" export all Voice Memos from app on OS X? - Ventura Update
Why is it so hard to bulk export all Voice Memos? Sure, you can drag them out of the app to your Desktop one by one. This retains the title, but it is creating a new file, thus losing the original date stamp of when it was recorded. The original date stamp is very pertinent information for most people.
In response to the post by bencollins2 here: https://discussions.apple.com/thread/253230259?
The bash script did not initially work for macOS Ventura as the Voice Memos location has moved.
The updated path for Ventura is:
~/Library/Containers/com.apple.VoiceMemos/Data/Library/Application\ Support/Recordings/CloudRecordings.db
So updating "bencollins2" original script with this path will work. See below. Thank you BenCollins2!!
#! /bin/bash
db = "~/Library/Application\ Support/com.apple.voicememos/Recordings/CloudRecordings.db"
mkdir "AllVoiceMemos"
cd "AllVoiceMemos"
OIFS=$IFS
IFS='|'
sqlite3 ~/Library/Containers/com.apple.VoiceMemos/Data/Library/Application\ Support/Recordings/CloudRecordings.db "SELECT ZPATH, ZCUSTOMLABEL, ZDATE FROM ZCLOUDRECORDING" | while read line; do
thisline=($line)
location=${thisline[0]}
name=${thisline[1]}
date=${thisline[2]}
offset="978307200"
newdate=$(bc <<< "$date+$offset")
trimdate=${newdate%.*}
formatteddate=$(date -r $trimdate +%y%m%d%H%M.%S)
echo "Location: $location. Name: $name. Date: $date. New Date: $newdate. Trimdate: $trimdate. Formatted: $formatteddate"
cp $location "./$name.m4a"
touch -a -m -t $formatteddate "./$name.m4a"
done
IFS=$OIFS