I have recently been having an issue moving a backup of an iPhone to a new iPhone. After many hours spent with Apple Support I've determined it's a lost cause, but I have the backup and am able to view the files in the backup, including my pictures. I was wondering if anyone knew how to sort these files using Automator so I can have all the pictures in one folder. I I have tried using the "Kind is image" filter, but that will only work if the extension is an image extension, and since none of the files have any extension this will not work.
How to one sort files without knowing their extension
automatorfinder
Related Question
- Automator: How to send an email to multiple recipients with Font colour and attachment image
- MacOS – How to identify file type for a bulk lot of files and attach suitable extension to each
- Automator: Select only one file out of many files in a folder. Script needed
- Automator: Filter finder items by date modified isn’t working as expected
- MacOS – How to remove metadata from image files using AppleScript
- Automator: remove last 9 characters in filename
- Filter or Find Finder Items Using Variable
Best Answer
Don't need to use Python, you can do this on the command-line command: file
eg.
So, you can dump that data out, and sort it for the paths you want.
eg.
etc.
Filter the output for images, using grep:
From the directory storing your back-ups:
find . -type f -exec file {} \; | grep image