特定の FileMaker レコードに挿入したい AppleScript でいくつかのデータを計算しています。これが私のAppleScriptです:
on sendDataToFM(FileNameWithExtension, ClipLength)
tell application "FileMaker Pro Advanced"
show every record of database 1
show (every record whose cell "File Name" = FileNameWithExtension)
repeat with i from 1 to (count record)
set MatchingRecord to record i
set data cell "CLIP LENGTH" of MatchingRecord to ClipLength
end repeat
end tell
end sendDataToFM
...
my sendDataToFM('Some Video.mov', '00:01:22.55')
行を除いてすべてが機能します
set data cell "CLIP LENGTH" of MatchingRecord to ClipLength
返されるエラーは
(*Can’t get cell "CLIP LENGTH" of {"Some Video.mov", ... }.*)
スクリプトは正しいレコードを見つけ、FileMaker フィールド名は間違いなく「CLIP LENGTH」です。私は何を間違っていますか?