Saturday, April 14, 2012

An automated RAF EXIF hack for those who want to use Lightroom or ACR with their F770EXR (or any other unsupported model)

I got tired of dicking around in the free HxD hex editor (also here) to modify every RAF file by hand. So I found an open source keyboard recorder called AutoHotKey and wrote a script for it. This script creates and saves a second copy whose name is tagged with “_f550EXIF” …

Now, I drag the RAF file and drop it onto this script sitting on my desktop. And it just runs. So cool.

;
; AutoHotkey Version: 1.x
; Language:       English
; Platform:       Win9x/NT
; Author:         A.N.Other <myemail@nowhere.com>
;
; Script Function:
;    Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
;

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.


PARM = %1%
Run "C:\Program Files (x86)\HxD\HxD.exe" %1%
Sleep 100
Send {Alt}sr
Send F770
Send {Tab}
Send F550
Send {Alt}a
Sleep 100
Send {Tab}
Send {Tab}
Send {Tab}
Send {Tab}
Send {Tab}
Send {Tab}
Send {Tab}
Send {Enter}
Sleep 40
Send {Enter}
Send {Alt}fa
Sleep 200
Send {Ctrl}x
Sleep 20
Send %PARM%
Sleep 10
Send {End}
Sleep 10
Send {Left}{Left}{Left}{Left}
Sleep 20
Send _550exif
Sleep 50
Send {Enter}
Sleep 200
WinClose HxD

The timing of the GUI for this editor is really tricky. On my machine, it works fine when I drop from explorer. When I drop from Bridge, it goes wonky and writes over top the original, but I have it save a backup in that case, so the original is still available.

Anyway, try at your own risk. Start with a backup copy of the RAF and see how that works for you. Tweak the timings until you get reliable conversions. This makes life so much easier :-)

By the way … paste it into a notepad window and name the file with the ahk extension. As in …

image

Good luck … and remember that there is no warranty, either expressed or implied and you use this hack at your own risk.

Could I make that any plainer Smile