In another forum users often ask why their images or movies sort incorrectly. A good way to troubleshoot this is to check the metadata dates with the following exiftool command:
exiftool -a -G1 -s -api QuickTimeUTC=1 -time:all -api RequestAll=2 movie.movBut for most users that is too difficult because they must download and install exiftool and have some basic Terminal skills.
There are some online tools that use exiftool to display the tags but none of them seem to display just the time info at a glance and they are not practical for large movie files.
So I'd like to make an easy to use applet that has exiftool built-in and runs that command to a desired file and displays or saves the output as a text file that can be copied elsewhere.
There are three AppleScript applets at:
https://exiftool.org/List_Exif_Metadata.zipBut in Mojave for some reason they all have an alert like "List Exif Metadata (edit).app is damaged can can't be opened. You should move it to the Trash."
The applets also point to /usr/bin/ instead /usr/local/bin/.
Anyway, I tried to make a new applet based on the "List Exif Metadata (edit)" which is the best because inserts all info in a TextEdit.app window. ("List Exif Metadata (dialog)" and "List Exif Metadata (list)" are not so good because they either crop the list or don't allow copying).
Is it possible to bake exiftool inside such applet so I could tell another user to download it from my Dropbox (or preferably from the trusted exiftool.org), use it to grab the date info and post the results without having to learn any Terminal skills?
I tried to use Script Editor.app to save that script modified as an "exiftool_time.app" Application, and copied exiftool from /usr/local/bin/ to its /Contents/Resources/.
Question: But how do I then tell the app the path to the baked-in exiftool? A path like /Contents/Resources/ does not work (sh: Contents/Resources/exiftool: No such file or directory)?
on open the_files
set exiftool_path to "/Contents/Resources/"
set exiftool_args to "-a -G1 -s -api QuickTimeUTC=1 -time:all -api RequestAll=2"
repeat with the_file in the_files
set exiftool_args to exiftool_args & " " & quote & POSIX path of the_file & quote
end repeat
set the_md to do shell script exiftool_path & "exiftool " & exiftool_args
tell application "TextEdit"
activate
set NewDoc to make new document
set text of NewDoc to the_md
end tell
end open
on run
set chosen_file to choose file with multiple selections allowed
open chosen_file
end run- Matti