2
我正在計算AppleScript中的一些數據,然後將其插入到特定的FileMaker記錄中。這裏是我的AppleScript:將數據從AppleScript發送到FileMaker記錄
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」。我究竟做錯了什麼?
你嘗試還設置MatchingRecord的細胞 「片段長度」 的cellValue到ClipLength? –