Connect to other moneyman data
Excuse me if this is obvious.
I'm using jython to interact with txns.
When I use:
root = moneydance.getCurrentAccount() book = moneydance.getCurrentAccountBook() txnset = book.getTransactionSet
I can then access txns in the current moneydance file.
How can I also access another moneydance database (say /Users/david/Desktop/Moneydance/cullenFinances.moneydance) at the same time so I can access txns on that db at the same time as accessing txns on the first db? Currently, I open in md the first file and then dump to csv then open the second file to read the csv and access the second db txns. I would like to avoid the csv file as intermediary.
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Mike Bray (Quot... on 11 Apr, 2019 06:37 PM
Hi
It is not really possible to access another file. MD's files are an internal structure and the only way to access them is to open them within MD one at a time. Any extensions/python scripts act on the currently opened file.
Mike Bray(a fellow user, not MD Support)
2 Posted by davidcullen on 11 Apr, 2019 10:48 PM
Thanks for the reply. I’ll keep using csv as a stepping stone. It works, just have to remember csv data is all strings, not original int , etc, for use in later filter with other txnset.
Sent from my iPad
3 Posted by davidcullen on 12 Apr, 2019 06:16 AM
For interest of anyone, here are the script I used successfully to dump and then read/process csv file:
and:Some txn tags in newMoneyDance have their keyword deleted accidentally and need to be put back.
This script dumps oldMoneyDance txns to csv file, forcing keyword to lowercase, which 2nd script imports into newMoneyDance as needed.
davidcullen closed this discussion on 12 Apr, 2019 06:16 AM.