Running Moneydance 2024 from the command line on macOS?
I'm trying to start Moneydance 2024.4 (5253) from the command line, and it seems to be ignoring the name of the file. I'm doing it based on the way it's done here: https://github.com/yogi1967/MoneydancePythonScripts/blob/master/lau... :
/Applications/Moneydance.app/Contents/MacOS/Moneydance "/Users/$USER/Library/Containers/com.infinitekind.MoneydanceOSX/Data/Documents/CY2025.moneydance"
It just opens the "Welcome to Moneydance" window rather than the specified file.
What's the latest "correct" way to do this?
I'm ultimately trying to run a script and exit, so if there is updated information on the other parameters and getting them to work, that would be helpful as well.
Thanks!
< Lionel
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 Stuart Beesley ... on 12 Jan, 2026 12:33 AM
I think your problem is the use of $USER inside double quotes. It’s not a MD problem, it’s that you are not passing a valid path.
Use echo (and your path) to prove how it’s being resolved.
Also, there is no MD parameter to launch a python script inside MD, only to invoke an extension (command). You would have to package and install a small python extension that listens for commands to make that work.
Support Staff 2 Posted by Sean Reilly on 12 Jan, 2026 08:47 AM
3 Posted by Lionel on 12 Jan, 2026 05:26 PM
I posted it as
$USERso that the example wouldn't be specific to my running it. Since this is a UNIX shell on macOS, i.e. bash, it expands to the right thing, even within double-quotes (single quotes of course wouldn't work).To replicate what I'm seeing, you can replace
$USERwith whatever is correct on your machine.Since Moneydance reported its current directory as being
/.../Data, the parent ofDocuments/in my example above, I also tried going withDocuments/CY2005.moneydanceon the off chance that (contrary to the shell script example, which says absolute path) sandboxing or something meant that it now needed to be relative to the current directory. That didn't help, either.I'm also assuming that although the sample script says "datafile", it's correct to supply the parameter as I showed above ... despite it (technically) being a directory not a file from the shell's perspective?
4 Posted by Stuart Beesley ... on 12 Jan, 2026 06:32 PM
Well, on my Mac from terminal I just tried this and it loaded MD and opened the file fine:
can you add -d as the first parameter, and supply the output you see on console before the welcome screen opens?
So, I just switched to Linux (Mint) and this worked fine there too:
and this worked too:
what happens if you run:
5 Posted by Stuart Beesley ... on 01 Feb, 2026 09:56 PM
?
6 Posted by Lionel on 02 Feb, 2026 07:41 PM
It stopped being reproducible for me too. I'm not aware of anything that changed. So I just moved on.
I don't suppose anyone has done an extension that can run a jython script (and then exit)?
7 Posted by Stuart Beesley ... on 05 Feb, 2026 03:48 PM
It’s possible but I suspect IK would not sign it. But possible.