K100SuperConverter

K100D Super
概要
Pentaxの一眼レフK100SuperのRAWファイルがMacOSXに対応していなかったので、無理矢理バイナリを書き換えてK100Dのファイルとして認識させるコンバータを作りました。これでiPhotoでRAW現像できるようになります。ファイルをドラッグ&ドロップすればOKです。同じ原理で他のカメラにも対応できると思うので、要望があれば作ります。下にソースを置いておくので、できるひとは自分で作っちゃってください。

動作環境
たぶんMacOSX10.5以上

ダウンロード

AppleScriptソース
[code]
on idle
quit
end idle

on open dropItems
tell application “Finder”
try
set listFile to dropItems as alias list
on error
set listFile to dropItems
end try
my modify(listFile)
end tell
quit
end open

on modify(listFile)
tell application “Finder”
repeat with theItem in listFile
if class of ((properties of theItem) as record) is folder then
set fileList to every item of entire contents of theItem as alias list
my modify(fileList)
else
set thePath to (POSIX path of theItem)
if (”.PEF” is in thePath) then
do shell script “/usr/bin/perl -i -p -e ‘BEGIN { $/ = \\\”1024\” }’ -e ’s/Super/ /’” & space & thePath
end if
end if
end repeat
end tell
end modify
[/code]