Skip to content

Instantly share code, notes, and snippets.

@sreilly
Created January 19, 2015 16:37
Show Gist options
  • Save sreilly/95bbb7c26737c5967cf2 to your computer and use it in GitHub Desktop.
Save sreilly/95bbb7c26737c5967cf2 to your computer and use it in GitHub Desktop.
import com.moneydance.apps.md.controller.AccountBookWrapper;
AccountBookWrapper datafile = AccountBookWrapper.wrapperForFolder("/path/to/MyFinances.moneydance")
datafile.doInitialLoad(new SecretKeyCallback(){
public String getPassphrase(String hint) { return "datafilepassword"; }
public String getPassphrase(String dataName, String hint) { return "datafilepassword" }
});
AccountBook moneydanceData = datafile.getBook();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment