I’ve built an app in Xcode with AppleScript/AppleScriptObjC and have been reading/writing to a plist on my desktop with no problems.
But when I move the plist to the Applications folder in the app’s “Contents” folder I get this error: “System Events got an error: Can’t get property list file “~/Applications/my_app/Contents/prefs.plist”. (error -1728)”
Is there a way to either:
read/write to my “prefs.plist” in the Applications folder using AppleScript (as I’m doing now)?, or
read/write to the app’s info.plist using AS (I have little skill using AppleScriptObjC)?
Or is this simply a security access issue? I’m sure I’m missing something obvious. Thanks for any direction.
Thanks Shane. Forgive the nubie question then: how does one handle plists? If you can’t access the app’s plist or add one yourself in the bundle (as I was trying to do) then is it a matter of locating the plist in some other location? I’m concerned that I would need an installer to make sure that that plist is installed in a static location. I feel like I’m missing the obvious solution as it’s done all the time. Thanks again.