tag:infinitekind.tenderapp.com,2009-01-14:/discussions/moneydance-development/7706-access-to-md-data-from-java-app-without-opening-md-uiInfinite Kind: Discussion 2023-04-11T22:20:17Ztag:infinitekind.tenderapp.com,2009-01-14:Comment/574725622023-01-08T18:09:41Z2023-01-08T18:09:41ZAccess to MD data from Java app without opening MD UI<div><p>Yes. But it’s not a supported ‘thing’ to do and results can vary between MD versions depending on whether the GUI loads too. So it kind of depends on exactly what you want to do.</p>
<p>Refer to the below for Jython.<br>
<a href="https://yogi1967.github.io/MoneydancePythonScripts/">https://yogi1967.github.io/MoneydancePythonScripts/</a></p>
<p>Scroll down to method 1</p>
<p>Method 1: Using Jython (for true Java integration) (with a launch script to set up the JVM properly) - See folder contents:</p>
<p>external-access-jython: Folder containing Jython launch script, and Jython examples accessing Moneydance externally….</p>
<p>Thus, you can do the same from within a pure Java app.</p>
<p>Now. Read only should be fine. If you want to do updates, it will be more tricky. You’ll have to shout if you want to do that.</p>
<p>Question, ask?</p></div>Stuart Beesley (Mr Toolbox)tag:infinitekind.tenderapp.com,2009-01-14:Comment/574725622023-01-08T18:47:42Z2023-01-08T18:47:42ZAccess to MD data from Java app without opening MD UI<div><p>Another example can be found <a href="https://github.com/dkfurrow/moneydance-investment-reports/blob/master/invextension/test/com/moneydance/modules/features/invextension/BulkSecInfoTest.java">here</a> of headless access from a pure java app, it's the regression test for the Investment Reports extension, (runs investment reports, compares to saved output to ensure consistency in the development process).</p></div>dalefurrow (Fellow User)tag:infinitekind.tenderapp.com,2009-01-14:Comment/574725622023-01-10T17:22:11Z2023-01-10T17:22:11ZAccess to MD data from Java app without opening MD UI<div><p>Thanks very much all. I only need to read-only so I should be OK.</p></div>Bob Btag:infinitekind.tenderapp.com,2009-01-14:Comment/574725622023-01-10T22:14:58Z2023-01-10T22:14:58ZAccess to MD data from Java app without opening MD UI<div><p>Just to let you know that I was successful following the model that Dale provided since my file does not have a user password. Looks easy when you know how :)</p>
<p>Thanks again.</p></div>Bob B