I'm writing an Cocoa-Applescript Application in Xcode and would like to save / recall some Combo-box (NSComboBox) entries in the [AppName]-Info.plist file. I know I can write to a plist with the following AppleScript:
But in order to use "plistfile" I need to set it to something like:
My question is how can I find the location of the [AppName]-Info.plist file from within AppleScript? Any help or pointers or suggestions would be most appreciated.
Code:
make new property list item at end of property list items of contents of plistfile with properties {kind:string, name:"stringName", value:"stringValue"}
But in order to use "plistfile" I need to set it to something like:
Code:
set plistfile to make new property list file with properties {contents:parent_dictionary, name:"/path/to/plistflle.plist"}
My question is how can I find the location of the [AppName]-Info.plist file from within AppleScript? Any help or pointers or suggestions would be most appreciated.