Hmm. Perhaps then another small step towards direct download could be an "import queue" to hold pending OFX imports. Microsoft Money uses this, and it's a great feature.

When the user opens the application, they can go to the "Pending Imports" section (or "Downloaded Statements" at some point), and GnuCash would try to match up each OFX file with an account (possibly merging multiple OFX statements into one per account?). The user would click on an account name that has an import pending, and that would bring up the OFX import reconciliation wizard that already exists.

Having a separate queue like this could allow scripted imports, but could also be used easily by a direct download service if and when it is implemented.

-j

Derek Atkins wrote:

Hi,

Quoting Jeremy Jongsma <[EMAIL PROTECTED]>:


Is there an easy way to script importing an OFX file from the command line? Until direct download is implemented, I was hoping to use a cron job to update my account every night, and just reconcile the new transactions in the account register the next time I use GnuCash.


Unfortunately I do not believe that the OFX importer API has been
g-wrapped to allow for a scheme script to automate the process.  Another
issue is that the importer has a GUI component to deal with transaction
destination mapping and duplicate detection which cannot be automated.

So, no, I do not think there is any way to script an import (nor do I think just wrapping the import APIs in g-wrap would help).

Good Luck,


-j


-derek

       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       [EMAIL PROTECTED]                        PGP key available

-- Jeremy Jongsma [EMAIL PROTECTED] http://www.jongsma.org

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
gnucash-devel mailing list
[EMAIL PROTECTED]
http://www.gnucash.org/cgi-bin/mailman/listinfo/gnucash-devel

Reply via email to