App Scoped Bookmark Entitlements Applescript
I am pretty new with Xcode, but have gotten pretty far on an applescript application. I am hitting a roadblock on finding out how to have a user select a folder that my app can read/write to, then when the app relaunches, to still have those read/write options. I found that the Seurity scoped bookmarks is what I am supposed to use, but can't figure out how, or what the script is, everything I have found is in cocoa.
this is what I have now
tell application "Finder" set backupfolder to (POSIX path of (choose folder with prompt "Choose where to backup" default location (((POSIX path of (path to home folder)) & "Dropbox") as string)) as string) end tell tell standardUserDefaults() of current application's NSUserDefaults setObject_forKey_(backupfolder, "backupfolder") end tellSo what I'm wondering is, how can I make a user selected folder always available for read/write privileges, even after quitting the app, and that the user can also change the folder if needed.
Any help is greatly appreciated!
Xcode-OTHER, OS X Mavericks (10.9), Bookmark Entitlements Applescript