Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to set the value of a field from Applescrpt ?

Featured Replies

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

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

  • 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 ?

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.