AutoHotkey: Copy and Paste of Exif via ExifTools
- I am sorting my photographs. Many of my panoramas do miss any Exif. Thus I have made a simple script
- Requirements!
- HotKey must be set in TC Ctrl + [ = cm_CopyNamesToClip
- HotKey must be set in TC Ctrl + p = cm_CopyFullNamesToClip
- tempfolder must exist
- tempfile must be created (It is better to use some small real jpg file)
IfWinActive, ahk_class TTOTAL_CMD { #!C:: tempFolder := "G:\temp\" ; That is temporary folder. ExifTools must be here. Folder pash MUST NOT contain spaces and dashed - exiftools will not work FileName := "ExifTemp.jpg" ; All Tags are copied from the file info FileName temporary file (It must be created beforehand !!!)
; First, file under cursor is sent to temp folser Send ^[ ;filename to clipboard TC shortcut File=%tempFolder%%clipboard% Send ^p ;filename with pathto clipboard TC shortcut Destination=%clipboard%
RunWait cmd /C copy /Y %Destination% %tempFolder%
RunWait %tempFolder%exiftool -overwrite_original -TagsFromFile %File% -exif:all %tempFolder%%FileName%
- clipboard=%tempFolder%exiftool -overwrite_original -TagsFromFile %File% -exif
- all %tempFolder%%FileName%
Return } Return
IfWinActive, ahk_class TTOTAL_CMD
{
#!V::
; All Tags are copied from the file info FileName temporary file (It must be created beforehand !!!)
tempFolder := "G:\temp\"
; That is temporary folder. ExifTools must be here. Folder pash MUST NOT contain spaces and dashed - exiftools will not work
FileName := "ExifTemp.jpg"
; All Tags are copied from the file info FileName temporary file (It must be created beforehand !!!)
Send ^[ ;filename to clipboard
File=%clipboard%
Send ^p ;filename with pathto clipboard TC shortcut
Destination=%clipboard%
RunWait cmd /C copy /Y %Destination% %tempFolder%
RunWait %tempFolder%exiftool.exe -TagsFromFile %tempFolder%%FileName% -exif:all -Orientation= %tempFolder%%File%
- clipboard=%tempFolder%exiftool.exe -overwrite_original -TagsFromFile %tempFolder%%FileName% %tempFolder%%File%
RunWait cmd /C copy /Y %tempFolder%%File% %Destination%
Return } Return