For one thing, make certain that your field rovi_md5_string
is on the layout that you are on when you call the script.
Second, result is returning cellName
, not the result of your shell script. Instead you can set a temporary variable to result below the do shell script line.
This worked for me when I had rovi_md5_string on a layout:
"
set myData to \"" & $key_secret_utime & "\"¶
set cmd to \"echo \" & myData & \" | md5 -q\"¶
do shell script cmd¶
set myResult to result¶
set cellName to \"rovi_md5_string\"¶
tell me¶
set data of cell cellName of current record to myResult¶
end tell
"
Take a look at my answer to this question for some thoughts on creating nice AppleScripts in FileMaker: How to pass data from a FileMaker field to an Applescript