Copy plist file and copy it back after closing the app


I’m using a droplet that I would want to copy the plist file and then something like

Copy the original plist and the restore the original one after that the script has run

What I wonder is how do I tell Script Editor to use that specific apps plist. It should be possible to get it from info.plist but not sure how to do that.

So really what I want to know is how do I get the plist file location from a specific app inte Script Editor.


Hi Adam,

try this

set bundle_identifier to bundle identifier of (info for (choose file of type ""))
	set pListFile to ((path to preferences as Unicode text) & bundle_identifier & ".plist") as alias
on error
	display dialog bundle_identifier & ".plist doesn't exist in preferences folder"
end try