This content has been marked as final. Show 1 reply
With some AS it is possible
set myDatabase to "theDB"
set myTable to "theTable"
set myField to "theField"
set firstline to do shell script "head -n 1 theFile"
tell application "FileMaker Pro Advanced"
create new record of table myTable of database myDatabase
set myRecord to ID of result
tell record ID myRecord of table myTable of database myDatabase
set cell myField to firstline
theFile can be /User/johndoe/file.txt or so.
If you don't use FM Advanced version the application name is 'FileMaker Pro' without 'Advanced'!