2

特定の 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」です。私は何を間違っていますか?

4

1 に答える 1

4

試す:

on sendDataToFM(FileNameWithExtension, ClipLength)
    tell application "FileMaker Pro"
        show (every record of current table whose cell "File Name" = FileNameWithExtension)
        repeat with i from 1 to (count record)
            set cell "CLIP LENGTH" of (record i) to ClipLength
        end repeat
    end tell
end sendDataToFM

my sendDataToFM("Some Video.mov", "00:01:22.55")
于 2013-04-02T21:32:51.550 に答える