

Under Linux/Unix can run your Ruby scripts via command like this: $ moneydance moneydance:fmodule:ruby:file?/path/to/script.rb

You can also run your scripts inside Moneydance environment via special command line mode that this program supports. Any output or errors generated by loaded code is fed into the console, and you can continue your IRB session normally once the code is loaded. You can load/execute Ruby source files from console too, using “Load file” button at the bottom. Console is great for testing your ideas and running one-liners, as well as generally learning your way around Moneydance classes and methods. Once you have the Moneydance Ruby extension installed, you can run Ruby programs through two mechanisms, the Ruby console or from the command line. Once you understand the methods here, many others will be simple to learn. They will be useful in most other programming too, such as those that modify Moneydance data. The methods below were chosen for their utility in writing reports. Many of the Moneydance classes and methods can be accessed with just a few commands on the Ruby console (GUI version of IRB with few add-ons), and you can cut and paste many of the examples below to check out the methods in your environment.
#MONEYDANCE MAC PYTHON SCRIPTING EXTENSION HOW TO#
While Moneydance API documentation contains minimal definitions of all classes and methods, this page concentrates on most common and useful methods and explains how to best use them in Ruby scripts. The documentation is pretty thin, but it tries to present things in the order that most people will use with special focus on the methods used to produce reports. This page has notes on using Moneydance Ruby extension and introduces most important Moneydance methods.
