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

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

Recommended Posts

Posted (edited)

I am getting a value from a plist file and I am trying to update the value of a field in a FileMaker Pro table. The script read the plist files correctly but the field does not get updated in the FileMaker Pro table.

Would anyone have an idea why set _EventNo to field  "EventNo" of table "Preferences"  does not work?

Many Thanks!

 

 

tell application "System Events"   

      tell property list file ("Volumes:NX5U:NX5U.plist")       

           tell contents             

                 set _EventNo to {value of property list item "EventNo"}         

           end tell     

       end tell

end tell

set _EventNo to field  "EventNo" of table "Preferences"  

Edited by DPaquin
Posted (edited)

You are setting the variable to the value of the field, not the field to the variable. Note also that "field" in AppleScript is not the same thing as "field" in Filemaker.

Assuming you only have one record in Preferences, try changing the last line to:

set field "EventNo" of table "Preferences" to _EventNo

 

 

Edited by comment

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