I have an AppleScript setting up the data for my Swift App.
Let's say the data is saved on the desktop, for example data.plist.
How can I read this data from my Swift app and set as a variable?
You can use the
NSDictionary API to read/write plist files. For example:
// given a value (fileURL) of type URL // read plist let nsDict = NSDictionary(contentsOf: fileURL) // write plist nsDict.write(to: fileURL, atomically: true)