#!/bin/bash
# Filename: EXIFdata
# Author: robz
# Version: 230910
# Get media file atributes, works with audio, video and photo.
# You'll need this "libimage-exiftool-perl" and "most"
# Put this script in /home/<user>/.gnome2/nautilus-scripts
# Right click on the file(s) you want data from, goto Scripts > EXIFdata.
# The "-r" switch allows to recurse through a selected directory.
# Check out "man exiftool" for full explanation of switches (extensive).
QUOTED=$(echo -e "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" |\
awk 'BEGIN { FS = "\n" } { printf "\"%s\" ", $1 }' | sed -e s#\"\"##)
gnome-terminal --title="EXIF data extractor" -x bash -c\
"exiftool -r -m $QUOTED | most"
No comments:
Post a Comment