July 15, 200520 yr The question is : How to set the value of an FM field from an AppleScript ? I tried : tell app "FileMaker Developer" set cell "test::test" to "Hello World!" end tell but an error occured...
July 15, 200520 yr If you try to work your way to the correct field by changing the numbers in this script will you be abel to see the way the syntax is going to be - down in the result part of scripteditor: tell application "FileMaker Developer" name of cell 1 of table 1 end tell or tell application "FileMaker Developer" name of cell 1 of layout 1 end tell May you get a enjoyable hunt!! This might be enough clue to where your assumtions causes the errormessage --sd
July 15, 200520 yr Author Thanks for help ! But... He does not find the object. What I have is : - FileMaker Dev 7 opened - One table - one layout - one field (for testing purpose) - I execute the code but he tell me "Object not found" and select the "name" in the code... What's wrong ?
July 15, 200520 yr Do you have any records in your test file? If you do not you will need to create a record before you can insert data into it. Here is a very basic AS to insert into record 1 tell application "FileMaker Developer" tell database "test.fp7" set cell "test" of record 1 of table "test" to "test" end tell end tell hope this helps Later
Create an account or sign in to comment