Jump to content

How to set the value of a field from Applescrpt ?


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

Recommended Posts

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

Link to comment
Share on other sites

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 ?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This topic is 6883 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.