Import from command line and quit
I am trying to write some basic shell scripts to import QFX files. What I'd like to be able to do is to run
/Applications/Moneydance.app/Contents/MacOS/Moneydance -nobackup AMEX.qfx
and have Moneydance import the transactions and exit on a succesful import. The import happens as expected, but I can't figure out how to have Moneydance quit after the import is done. Any suggestions / recommendations?
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 02 Jun, 2026 03:13 PM
Probably need to use the invoke and quit parameter with an extension id. Dunno if that will work 🤷
2 Posted by Andrew Koyfman on 02 Jun, 2026 03:23 PM
I was hoping someone had the actual command line I could use. I am not sure what to pass to -invoke_and_quit=fmodule:qfx didn't seem to do anything...
3 Posted by Stuart Beesley ... on 02 Jun, 2026 04:58 PM
Actually, forget it. It won’t work. I just checked it out. Invoke and quit will quit before files are imported. My only thought is whether you can use an extension like file importer and invoke and quit on that. I would need to check it out for you, but I can’t do this right now.
4 Posted by Stuart Beesley ... on 02 Jun, 2026 04:59 PM
I agree - it would be nice to have a quit after import parameter.
5 Posted by Stuart Beesley ... on 02 Jun, 2026 09:41 PM
PS. For the record. The format for the parameter is:
In this example, extract_data is the extension id and hello is the command. Of course, the command has to be known by the extension to work.
Extract data has these options:
QuoteLoader responds to this:
You’ll note that these extensions accept a command and then trigger quit themselves, rather than using the invoke and quit parameter.
Just for info.
6 Posted by Stuart Beesley ... on 03 Jun, 2026 10:03 AM
Update. It seems that ‘importfile’ has been setup as a command. Try this.
Or something like that. Let me know.
7 Posted by Andrew Koyfman on 03 Jun, 2026 04:39 PM
Weirdly it only half-works... and I've been running a bunch of tests here. One note for anyone trying to replicate, it looks like Moneydance needs the absolute file name.
So, here's what works, but doesn't quit moneydance.
In my case this loads 3 new transactions for me to reconcileThis also seems to work (though takes a lot longer to complete (and doesn't quit)
again this loads the file 3 new transactions.Now if I try to do the recommended action, it seems to quit too early, before the transactions are actually processed
It quits, but the transactions never get loaded into the file. Just looking at the output in the window, it looks like it never gets to the actual processing of the new transactions...8 Posted by Stuart Beesley ... on 03 Jun, 2026 04:45 PM
I feared it might quit too early. That is a common problem with the quit bit. I’ll look deeper when I get time.