tag:infinitekind.tenderapp.com,2009-01-14:/discussions/moneydance-development/39-jython-example-on-macInfinite Kind: Discussion 2011-12-21T14:15:27Ztag:infinitekind.tenderapp.com,2009-01-14:Comment/39098492010-11-23T13:14:14Z2010-12-01T07:38:43ZJython Example on Mac?<div><p>Craig5,</p>
<p>Have you installed the Python Scripting Interface extension in
Moneydance? You can find one example of a Python script attached to
post 4 <a href=
"http://help.infinitekind.com/discussions/questions/1820-how-to-modify-or-remove-manual-setup-financial-institution-in-online-banking-signup">
here</a>. Don't actually run it unless you're okay with force
clearing all your online connections. I hope this helps, but do let
me know if I can be of further assistance.</p>
<p>Angie Rauscher<br>
Moneydance Support</p>
<p><em>Check out our <a href="http://moneydance.com/blog/">new blog
series, Moneydance on the Road</a>.</em></p></div>Angie Rauschertag:infinitekind.tenderapp.com,2009-01-14:Comment/39098492010-11-23T19:37:32Z2010-11-23T19:37:32ZJython Example on Mac?<div><p>Hi. Thank you for the reply, but this is not what I was looking
for.</p>
<p>I don't want to run anything from within Mondaydance itself.
(I.e. I am not looking to develop an extension just yet.) I need to
be able to access my data via the command line. The following
example is great for Linux, but does not work on a Mac:</p>
<p><a href=
"http://moneydance.com/dev/RM-NetWorth/wiki_jython.html">http://moneydance.com/dev/RM-NetWorth/wiki_jython.html</a><br>
<a href=
"http://moneydance.com/dev/RM-NetWorth/networth.py">http://moneydance.com/dev/RM-NetWorth/networth.py</a></p>
<p>Specifically, it refers to starting up the moneydance app:</p>
<p>moneydance -invoke_and_quit
moneydance:fmodule:jpython:runfile?=networth.py</p>
<p>That doesn't work on a mac. Again, I need to know how to load
the moneydance jar files properly. (I am a programmer, but I don't
know python very well.)</p>
<p>I'd like a simple script that just shows some data and exactly
how you can run it form the command line.</p>
<p>Thank you!!<br></p></div>craig5tag:infinitekind.tenderapp.com,2009-01-14:Comment/39098492010-11-24T19:32:31Z2010-11-24T19:32:31ZJython Example on Mac?<div><p>Hi Craig5</p>
<p>Try the following command:</p>
<p>open /Applications/Moneydance.app --args -invoke_and_quit
moneydance:fmodule:jpython:runfile?=networth.py</p>
<p>Ben Spencer<br>
Moneydance Support</p></div>Ben Spencertag:infinitekind.tenderapp.com,2009-01-14:Comment/39098492010-11-24T19:33:37Z2010-11-24T19:33:37ZJython Example on Mac?<div><p>The above will look for networth.py in the folder you run the
command from.</p></div>Ben Spencertag:infinitekind.tenderapp.com,2009-01-14:Comment/39098492010-12-28T02:41:47Z2010-12-28T02:41:47ZJython Example on Mac?<div><p>Sorry for the delay...</p>
<p>The above did not work. Moneydance did "flash" on the screen for
a second, but that's all.</p>
<p>ALso, what would happen if moneydance is already running?</p>
<p>I need to be able to run this via cron and from a remote
machine, so having a GUI app popup may not be what I'm looking
for.</p>
<p>I am really hoping that I just need to set Java's CLASSPATH
properly.</p>
<p>Is is possible to write a <em>totally</em> command line app in
Java? My biggest goal is to be able to do everything via the
command line. If it requires Java, that's totally fine.</p>
<p>Thanx!!</p></div>craig5tag:infinitekind.tenderapp.com,2009-01-14:Comment/39098492010-12-28T15:45:26Z2010-12-28T15:45:26ZJython Example on Mac?<div><p>Hi Craig,</p>
<p>I believe, if you're using Jython, there isn't a way to invoke
Moneydance without having the GUI flash up while the script is
running. That's just a limitation of our Jython interface.</p>
<p>If you'd like to write a Java script, you may find our Extension
developers Kit useful, as well as the Extension API. It's not
exactly what you're looking for, but it might help you figure out
the set up you need for a command line app. You can find both in
the developers section of our website (<a href=
"http://moneydance.com/developer">http://moneydance.com/developer</a>).</p>
<p>Hope that helps!</p>
<p>Jessica Little<br>
Moneydance Support</p></div>Jessica Littletag:infinitekind.tenderapp.com,2009-01-14:Comment/39098492011-01-16T15:13:18Z2011-01-16T15:13:21ZJython Example on Mac?<div><p>Hi Craig,</p>
<p>Did you have any luck getting this to work? I spent a
significant amount of time getting this to work a few years ago. I
was helped a lot by emailing Ric Werme (linked to from the
developer's page), who was very responsive. Unfortunately, I was
never able to prevent the startup screen from flashing up.
Furthermore, everything broke with the update to Moneydance 2010,
and given how poor the developer support is, I have little hope of
getting it to work again.</p>
<p>I've been a Moneydance user for about five years. Using
Moneydance is death by a thousand little nicks. There are numerous
annoying interface quirks. The Developer API exists but is not what
one would expect. The fact that the only developer docs are
pointers to third-party sites last updated in 2005 is a good
testament to the state of Moneydance, as well as to any hopes that
these issues will be developed in the near future or ever.</p>
<p>I wish I could suggest another program, but there aren't really
any. I'd love to switch to something but Moneydance is just good
enough that I can keep using it, despite the many annoyances, the
poor support, the tone-deaf development (the 2010 update basically
reorganized the home screen -- that's all, and the iPhone app,
which must have taken an inordinate development effort, basically
reimplements the whole program instead of doing something like what
you'd expect, namely quickly entering transactions on the road).
Given the poor implementation and documentation, the existence of
the API is really disheartening. It would almost be better if there
were nothing at all, so as not to get one's hopes up.</p>
<p>matt</p></div>matttag:infinitekind.tenderapp.com,2009-01-14:Comment/39098492011-02-23T03:53:01Z2011-02-23T03:53:01ZJython Example on Mac?<div><p>Hi Matt.</p>
<p>Sorry for the long delay (work and stuff).</p>
<p>I have given up on getting a real cli app going. I am more than
a little disappointed that I couldn't be given a simple "hello
world" program. I mean for them to just point me at the developers
area was really lame. It was obvious from me previous posts that I
had already tried that.</p>
<p>I am looking for alternatives. I hear a lot of good things about
iBank. But, they don't mention any kind of API, which, to be
honest, puts it only slightly behind MD b/c the MD API doesn't do
what I need anyway.</p>
<p>I wish you the best of the luck. But, after years of
frustration, Im throwing in the towel...</p></div>craig5tag:infinitekind.tenderapp.com,2009-01-14:Comment/39098492011-02-23T16:51:59Z2011-02-23T16:52:00ZJython Example on Mac?<div><p>Craig,</p>
<p>Thanks for the response. I have similar frustrations: it seems
like there is fair demand for CLI access, and that it wouldn't take
long for them to post a working example that would answer most of
these questions. From the piecemeal responses I gather that it is
not a priority for them.</p>
<p>Years of frustration from poor support and a lack of a response
drove me elsewhere, too. I discovered <a href=
"http://nothirst.com/moneywell">MoneyWell</a> , and am ecstatic
about it. The whole reason I was experimenting with the CLI was so
that I could write budget reports that could be emailed to both my
wife and I, so we'd have daily access to the current state of our
monthly budget. That was already a hack, and MoneyWell solves the
problem by adapting envelope budgeting to people whose primary
spending is done through credit and debit cards. Income is
allocated to categorical "buckets" on a regular basis; these
buckets are a virtual layer on top of your actual accounts, and
spending is driven from them. I'd encourage you to check it
out.</p>
<p>matt</p></div>matttag:infinitekind.tenderapp.com,2009-01-14:Comment/39098492011-02-23T17:25:04Z2011-02-23T17:25:04ZJython Example on Mac?<div><p>Matt,</p>
<p>I'm glad you found a program that better meets your needs, and
I'm sorry our program didn't. If there's some way I can be of
assistance I hope you'll let us know.</p>
<p>Angie Rauscher<br>
Moneydance Support</p></div>Angie Rauscher