Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7069 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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...

Posted

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 wink.gif

--sd

Posted

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 ?

Posted

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

This topic is 7069 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.