当方は FileMaker を持っておらず、OS も Snow Leopard と古いので、分かる範囲でコメントします。
AppleScript は次のようになると思います。
(1) メールのメッセージを受け取る度にメールの内容を取得
(2) その内容を FileMaker で処理
(1) については Mail.app のルール用 AppleScript のサンプルが OS に入ってるかもしれないので探してみてください。ちなみに Snow Leopard では以下にあります。
"/Library/Scripts/Mail Scripts/Rule Actions/Sample Rule Action Script.scpt"
(2) については、下記フォーラムで (過去ログを調べた上で、もしなければ) 質問してみるとか。
FileMaker 日本語版フォーラム . Product Group . FileMaker Forums
http://forums.filemaker.com/groups/79cf034353/summary
有用な情報を得られない場合は、FileMaker の AppleScript 用辞書を見ながら自分で書くしかないかもしれません。辞書は FileMaker を Script Editor にドロップすると見ることが出来るはずです。
あと、下記のページの過去ログを見てみるとか。
初心者のFileMaker pro Q&A
http://joy-h.com/bbs2/viewforum.php?id=2
MacScripter
http://macscripter.net/
ーーーーー
以下は OS に入ってるルール用サンプルスクリプトをちょっと加工したもので、メッセージを受け取る度にダイアログに題名と本文 (300文字まで) を表示します。ルールに登録して試してみてください。なお、動作確認は Snow Leopard / Mail 4.6 です。
using terms from application "Mail" on perform mail action with messages _messages_ for rule _rule_ tell application "Mail" repeat with i in _messages_ try # 差出人 set snd to sender of i # 題名 set sbj to subject of i # 本文 set body to content of i # サブルーチン my func(snd, sbj, body) end try end repeat end tell end perform mail action with messages end using terms from on func(snd, sbj, body) # # ダイアログに題名と本文 (300文字まで) を表示する # set c to count characters of body set m to 300 if c > m then set body to (characters 1 thru m of body as text) & ("...") else set body to body end if -- tell application "Mail" display alert sbj message body end tell end func
また、on func(snd, sbj, body) のところを以下のようにすると、TextEdit の新規書類にメッセージの内容を流し込みます。
on func(snd, sbj, body) # # Text Edit で新規書類を作成し、差出人・題名・本文を書き込む # tell application "TextEdit" set snd to "差出人: " & snd set sbj to " 題名: " & sbj set body to body -- set txt to snd & return & sbj & return & return & body -- make new document with properties {text:txt} end tell end func
FileMaker の場合は、この部分ををそれなりに書き換えると良いでしょう。(とはいってもどう書いたら良いのか分かりませんが...)