Created
November 27, 2014 23:37
iOS Voicemail Backup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# Tested on an iOS 8 iPhone backup done via iTunes | |
# point this to the desired backup found in ~/Library/Application Support/MobileSync/Backup/ | |
backup_path = "/Users/nathan/Desktop/PhoneBackup/" | |
voicemails_path = "/Users/nathan/Desktop/Voicemail/" | |
Dir.foreach(backup_path) do |item| | |
next if item == '.' or item == '..' | |
path = "#{backup_path}#{item}" | |
file_type = `file #{path}` | |
if file_type.include? "Adaptive Multi-Rate Codec" | |
`cp #{path} #{voicemails_path}#{item}.amr` | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment