Use Javascript for automation (JXA) to create a plist
问题 I'm looking into creating a JXA to build a plist. My starting point is an AppleScript that I found here. I came up with this snippet: var se = Application('System Events'); var item1 = se.PropertyListItem({kind: "string", name: "employee_name", value: employeeName}).make(); var plistFile = se.PropertyListFile({name: '/Users/armando/Desktop/x.plist', PropertyListItem: [item1]}).make(); ScriptEditor compiles without errors, the file got created but no entries are produced on the file. I guess I