DPaquin Posted December 2, 2018 Posted December 2, 2018 (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 December 2, 2018 by DPaquin
comment Posted December 2, 2018 Posted December 2, 2018 (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 December 2, 2018 by comment
DPaquin Posted December 2, 2018 Author Posted December 2, 2018 Thanks Comment for the response, this is greatly appreciated. It worked.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now