MoneyWorks Datacentre 9.2.7 Mac server migration

Upgrading MoneyWorks Datacentre Server on Mac is a little different with 9.2.7 (or any upgrade from pre-9.2.7 to post-9.2.7)

The problem

For many years, MoneyWorks Datacentre on Mac has installed in /Library/MoneyWorks and the service would run as a special user moneyworks_server. This was intended to isolate the server from other user data on the machine. However, this has become increasingly problematic since Apple introduced TCC (Transparency, Consent, and Control) that limits software access to certain folders, such as the Documents folder, without explicit permission being granted. This is a different isolation model that has turned out to be quite incompatible with isolating the service via a dedicated, hidden user. Perversely this caused the server user to not have access to its own Documents folder, and Apple provided no good way for the permission to be granted. The workaround was to require Full Disk Access. Not ideal.

Additionally, Apple’s Migration Assistant was also not compatible with this scheme and would bork your Datacentre installation if you migrated it to a new Mac with Migration Assistant by turning moneyworks_server into a regular user and moving its home folder to /Users.

Now, MacOS 27.3 raises the bar on the scare factor of Full Disk Access – Apple really, really does not want software to use it. So it is finally time to throw in the towel on running as moneyworks_server.

Solution: New location, new identity

From v9.2.7, MoneyWorks Datacentre will run as the console user (i.e. the user who installs the software, or upgrades it from an earlier version). This will involve migrating the files at /Library/MoneyWorks/Documents and /Library/MoneyWorks/Library to ~/Library/MoneyWorks. The moneyworks_server user and its home folder will be removed. Do not do this manually — the installer will do it.

For safety, the upgrade install will do a preflight check to make sure there are no unexpected files in the folder that might be lost when the user is deleted. The install will not proceed in this case. To keep the installation uncomplicated for the 99.9% of cases, there is UI on this preflight, and failure will just be a failed install. If the install stops for this reason, please go to /Library/MoneyWorks/ and remove anything extra you have placed there. Do not move /Library/MoneyWorks/Documents and /Library/MoneyWorks/Library — the installer will move those to the new location. After removing any other files that do not belong to the service, you can run the upgrade again.

The installer will write a migration log at /private/var/log/moneyworks-install.log

New home for the server

You can run the install as the user you normally log into your Mac server as. If you want more isolation, you can create a dedicated normal user (admin or non-admin), log in as that user and run the upgrade. This will cause the service to run as that user.

  • The new home will be ~/Library/MoneyWorks (i.e. /Users/YourUser/Library/MoneyWorks)
  • The server documents will be in ~/Library/MoneyWorks/Documents
  • Other server support files will be in ~/Library/MoneyWorks/Library
  • There will be a symbolic link at /Library/MoneyWorks owned by the console user that points to the console user’s ~/Library/MoneyWorks. This link must not be removed. The server will rely on it. The MoneyWorks Datacentre Console app will still show the configuration path as /Library/MoneyWorks/Documents using this symlink. Likewise for backups and archives. You can configure backups and archives to go to a location that your user allows MoneyWorks Datacentre to access
  • The service still runs as a LaunchDaemon, not a LaunchAgent, so that it will be available after a reboot without the owning user account being logged in. For this reason it is still necessary to authenticate as an admin to start and stop the service. Note that to run at boot, the Mac server must not use FileVault. Nothing will run after boot on a FileVault-encrypted Mac until someone logs in to decrypt the boot drive
  • REST Externals: In the unlikely event that you had externals at /Library/MoneyWorks/Library/Application Support/Cognito/MoneyWorks Gold/Externals/ to be executed by REST workers, you will need to move those yourself to ~/Library/Application Support/Cognito/MoneyWorks Gold/Externals/ so that the REST workers can find them

Important

Because files will be moved, make sure that no documents are open in the server when you run this migration upgrade. Check the Folders tab in the Console with Show Active Documents selected and make sure none are active.

No downgrading

After upgrading to MoneyWorks 9.2.7, do not attempt to reinstall an earlier version of MoneyWorks Datacentre. Earlier installers will not know about the new installation layout.

Supported versions for migration

Migration upgrade is supported for any version from 8.1.8. If you have an older installation, you should upgrade to any intermediate version first.

Benefits

  • No FDA required. Existing FDA can be removed for MoneyWorks Datacentre Console.app
  • Migration Assistant will now be safe to use to move to a new Mac
  • Adding files to the Documents folder will not require ownership to be fixed
  • Complete uninstallation is simpler due to no extra user – just delete the Console app; the plist in LaunchDaemons; the ~/Library/MoneyWorks folder; and the /Library/MoneyWorks symlink
Posted in Uncategorized | Comments Off on MoneyWorks Datacentre 9.2.7 Mac server migration

Adding extra pages to an invoice form PDF

A customer wanted to add 10 pages of terms and conditions to an invoice PDF. How can that be done with a MoneyWorks invoice form?

Firstly, whenever a form needs differently formatted sections, you use Sections.

Section 1

The invoice part of the output will be Section 1. Normally a form has just one section. On section one, define the parts of the form (headings, line item list, totals etc). A line item list with many lines may result in page breaks.

Section 2

The terms and conditions will be section 2 — but how to output 10 pages of text? The maximum number of sections is 6.

Recall that the detail line list in section 1 allowed the invoice to spread over multiple pages. You can use a list object specifically for the purpose of generating page breaks:

  1. On section 2, create a small list object about 20 point high. This list is just big enough that it would fit one line of output so it will generate a page break for each line
  2. Activate the list object and drag the heading separator of the list to the top so that it has no heading area

  3. Right click in the list and choose List Options
  4. Set the List Records to Calculated row count
  5. Set Row Count to the number of pages you want. The small list object will cause a page break for each row of output (there will not be any output because the column of the form is blank — all we want are the page breaks).
  6. Set the format to have no lines or stripes and make sure Allow Multiple Pages is on

  7. Create a text object for each page of output — put your terms and conditions in the text objects (they will all overlay each other). On each object, right click and set the Visibility.. so that the object only shows on the nth SectionPageNum for that section. i.e: SectionPageNum = 1, SectionPageNum = 2, SectionPageNum = 3, etc…

Result

Posted in Uncategorized | Comments Off on Adding extra pages to an invoice form PDF

Waiting for Printer on Windows

Every report and form in MoneyWorks can be targeted at a particular printer. Useful if you have labels or hardcopy receipts to generate. The printer driver will be used for pagination settings even if you are not actually printing.

On Windows, accessing a printer driver for a network printer that is off-line can be very slow, because Windows wants to contact the actual device on the network, resulting in a 30 second time-out delay when you only want to preview something.

How to eliminate this delay

If you don’t actually print on paper and just want to preview with no delays for off-line printers:

  1. Change your default printer to something local like MS Print to PDF
  2. Go to MoneyWorks Preferences → Documents and turn on Always use Default Printer. Then there will never be any wait

You can still select on on-line printer at any time if you actually want to print something.

Posted in Uncategorized | Comments Off on Waiting for Printer on Windows

Change History for 9.2.6

Sept 2026

  • On Datacentre, Sales Order processing is now much faster: the processing runs entirely on the server
  • Stocktake Commit Selection can be applied to a selected location
  • Copy as HTML to copy highlighted list items as formatted HTML (e.g. to paste into an email). Select records, right click and choose Copy as HTML
  • Fixed the missing table data underscore CSS style for HTML output
  • Updated the MCP server installation into Codex to work around OpenAI changing the name of the app to ChatGPT(!). Also the Windows install for Claude and Codex should be less likely to run into Access Denied errors on Windows installations that are locked down with Applocker — installation can always be done the manual way if all else fails. In ChatGPT/Codex you can verify that the moneyworks MCP is installed and configure permissions at Edit → Settings → Plugins → MCPs
  • MCP server adds an import_image tool. This allows you to use Claude et al to attach images to transactions (requires the Claude filesystem MCP to be enabled)
  • MCP server adds an inspect_window tool. This helps Claude to have more insight into how to help you to create scripts to automate or streamline data entry tasks
  • The Expression Editor can be invoked from the mail composer with a new toolbar icon and also from any text field in Gold or Express via ⌘-opt-L (Mac) or ctrl+shift+= (replaces the Contra shortcut). If invoked for a mail subject containing expressions embedded in << >> it will select the text within the angle brackets for editing. This provides assistance for composing mail-merge expressions, showing you the list of available fields you can use, and checking the syntax for you
  • The Expression Editor in MoneyWorks Gold has syntax colouring and autocomplete of identifiers, making it easier to compose those tricky calculations
     

    expression autocomplete

  • 2026-09-23 minor update for Gold to allow skipping offer to reinstall COM keys on Windows if you delete Reinstall-MW-COM-Keys.exe. If you are on Mac or have no problem with COM key reinstallation, you don't need the Sep 23 update
  • Entry field length is relaxed when you are typing an expression, so that you can type (or paste) a long expression into a short field
  • Trial balance fixed issue with account codes that are a prefix of another code
  • Purchase Order processing one-off stores the supplied cheque number
  • Custom forms: Fixed some issues with some changes (e.g. object properties dialog) not triggering save changes on close
  • Writing-off a foreign currency invoice now sets the write-off's TaxAmount field amount in the currency, not the base currency
  • Added pseudo fields to access the raw special mailing/delivery address fields
  • Std All budget reports column headings after page break
  • Composite tax rates that were converted from an All tax rate do not appear in override popups. To fix, just change the raate record and the underlying unused infinity rates will be cleared
  • Added Transaction.SpecialMailing and Transaction.SpecialDelivery field names that provide access to the raw value of the special address fields (since the MailingAddress and DeliveryAddress field names always do automatic lookup of the related addresses from the Name record making it hard to know if the address is a special one (in particular for sales taxes
  • Fixed Sales Order processing becoming non-stoppable
  • Added Westpac One EFT payments export format
  • Fixed cosmetic glitches with preview report drilldowns when scrolling on Windows
  • Fixed Bank Balances report by Accountants Code hanging when run on a network
  • Support alt names in TLS certificates when host matching
  • COM registry reinstaller corrections, plus additional keys for better 64 bit support
  • Advanced Find by formula: Retry no longer closes window
  • File Open on Windows no longer refuses to open read-only files
  • Fixed navigator flickering horribly with Windows windowsCompositing hidden preference turned off
  • Ctrl-0 for navigator keyboard shortcut
  • Improved return key behaviour in dialogs with only one writeable text field
  • Improved text field height scaling consistency on Windows
  • Allow empty clones to be opened with write access by a demo (and reset read-only mode when switching to a new file that is unexpired for demo)
  • Optimised the work-it-out case for control accounts for Name imports for up to 300x speed improvement
  • Fix line spacing when printing directly to a printer driver on Windows
  • 202610.09 9.2.6r2 Gold Windows only (plus Datacentre): Resolve the erroneous offer to reinstall COM registry keys on startup that a small number of users have been getting
  • 202609.30 9.2.6r1 Fixes a potential crash processing sales orders on Datacentre, as well as the possibility of more than one user processing the same orders simultaneously
  • 202609.29 removed the network drill-down optimisation for now, as it did not work properly in all cases

Server

  • Server will clean up stale temp files automatically when disk space is low
  • Windows clients on laptops will log out automatically when lid state changes to closed (on the assumption that network connectivity will soon be lost). In this situation, scripts may not begin a database update since network connectivity may be lost before the update can complete.
  • Improved REST service resilience to various failure modes
  • Plugin uploads are logged
  • Plugin uploads are optional when uploading a document
  • Server will check for updates nightly (currently new version is just logged on the server; in the near future clients will be able to notify users when the server version age is excessive)
  • Console will also advise you of new updates at startup or if you leave it running
  • Windows Console improve warnings about bad backup paths
  • Windows Console supports keyboard shortcuts for copy/paste etc
  • The moneyworks_datacentre.conf contains a new configuration option (not in the console UI) killZombiesAfterSeconds: 90 — REST CLI worker processes will be automatically killed if their request processing time for a single request exceeds this threshold. If you have very very long running REST requests, you may want to increase this parameter to something greater than 90 seconds

Scripting

  • Option to create custom window as a top level window on Windows using fWindowMode_TopLevel (the window is modeless, but not constrained to the MDI frame). This can be (and should only be) used to create web view windows that can be moved onto another screen. On Mac, this just creates a normal window.
  • XPathSerialise function reserialises an XPath node
  • In webviews in custom windows, you can use links with the schema moneyworks://nav/hotlink to invoke the Navigator hotlink dispatching
  • CLI logs privilege errors for better failure reporting to REST clients
  • Increased lexical analyser maximum line length
  • Re-save .mwscript with long filename no longer forces it to mwpkg format
  • Fix HTTP server flakiness when it gets socket descriptor 0 on Mac
  • New Script Document command is always visible in the File → New menu
  • UpdateOrderLines can now take updates for batches and locations; the array keys for the items to update can optionally be productCode tab batchNum tab Location instead of just a product code. Also for even finer control where you want to update shipments from an alternative UI, you can specify the row number to update as the array key
  • Forced-disconnect: If a user logs out by closing their laptop lid*, new client-initiated database transactions cannot be started while the logout proceeds. This is to prevent problems when network connectivity is lost in the middle of a database update
    *The logout-on-lid-close behaviour can be changed by SetAppPreference("disconnectOnLidClosed", true|false) but also see below regarding OS behaviour
  • SetPersistent now runs the record update entirely on the server. As such it may be safe to call when logging out. Other types of database updates are not. Caveat: On Windows 11, some devices (such as Surface Pro) will instantly reset network connections when you close the lid (depending on System Policy)
  • Moved the [+] icon in the Script Editor to cope with the excessively-rounded window corners in recent macOS versions
  • Fixed some attributes in the schema xml export
  • When saving a script package, the editor will first check and warn if the file on disk has been changed (in case you are editing a package in a Dropbox folder)
  • ContraInvoices(seq, seq) function
  • DoDatePicker(win, itemID) function. Use in EnterField handler to pick a date for a custom field
  • Fixed scripted manipulation of checkboxes and tab views in a newly-opened window
  • Fixed page size for REST doform PDF output on Windows servers
  • Encryption support in Sqlite via SQLCipher (HAS_CODEC). No longer relying on OS sqlite lib on Mac. This provides v3.53.3 which fixes the 16 year old WAL-Reset bug that is not fixed in Sequoia or Tahoe
  • Mac web views support open/save/print for feature parity with Windows Webview2
  • GetFieldAttribute(win, itemID) function to get information about UI objects
  • UI items that have no symbolic identifier are now given an ID of item_N where N is the item number. This is to make life easier for Claude et al
  • ProcessOrder(orderSeq, mode, params) function. Currently this supports one mode: ProcessOrder_GoodsReceivedBeforeInvoice, which requires a parameter array specifying unbilledStockAcct, date, and period e.g: ProcessOrder(993, ProcessOrder_GoodsReceivedBeforeInvoice, CreateArray("unbilledStockAcct", "2100", "period", CurrentPeriod(), "date", Today()))
  • Fixed several issues with External called from CLI
  • Fixed CLIAppSupport capturing some paths it should not have
  • Datacentre REST server now supports custom auth headers X-Datacentre-Auth and X-Document-Auth as alternatives to the (somewhat non-standard use of) Authorization with multiple realms. When using the custom headers, no realm is required in the base64-encoded Basic user:pass block since it is part of the header name
  • Fixed SwizzleRename losing handlers when new name did not sort the same as original name in the nametable
  • Find() relational searches between account ←→ ledger no longer need explicit link fields
  • Script Editor better error checking of save failures due to read-only destination
  • No longer double Validate on Windows via enter key in a Scintilla edit control
  • Fix script editor crash when opening new editor after a compile error in another editor
  • Script editor no longer considers script dirty if it was only recompiled with no Active state change
  • Improved error handling when a script passes a bad path to Mail() or Built_In:SendSMTPMail()
Posted in Change History | Comments Off on Change History for 9.2.6

iBodyshop and MoneyWorks Now with MoneyWorks Gold 9.2.5

There is a change to the value of the DocumentPath variable in MoneyWorks 9.2.5 such that when connected to a network server it now returns the full URL of the connection instead of a “Document @ Server” string. This has had the side effect of breaking iBodyshop connections, which expected to see the old format and will fail if it does not see it.

To mitigate this incompatibility, there is a short term fix for MoneyWorks to get the old format for DocumentPath:

First, make sure you are running MoneyWorks Gold 9.2.5 Build 202606.03.1505

Open a script window in MoneyWorks (Ctrl-Alt-N)

Select all, and replace the text, pasting the following script:

constant meta = "iBodyshop temporary fix"

on LoadFromScriptEditor
    SetAppPreference("quirksMode", SetTaggedValue(GetAppPreference("quirksMode"), "_iBodyNameForURL", "1"))
end

Click Run Once

This will allow iBodyshop to connect with MoneyWorks. This fix is temporary until iBodyshop is updated. Note that the MoneyWorks 9.2.5 Claude AI MCP integration will not work properly with the fix applied.

You can close the script window. No need to save it.

To remove the fix, after iBodyshop is updated, do the same thing but paste in this script and click Run Once

constant meta = "iBodyshop undo temporary fix"

on LoadFromScriptEditor
    SetAppPreference("quirksMode", SetTaggedValue(GetAppPreference("quirksMode"), "_iBodyNameForURL", ""))
end
Posted in Uncategorized | Comments Off on iBodyshop and MoneyWorks Now with MoneyWorks Gold 9.2.5

Using AI with MoneyWorks

MoneyWorks Gold 9.2.5 and later includes a Model Context Protocol server that allows a local AI client to query and control MoneyWorks on your computer. Because the AI client app is communicating with MoneyWorks Gold, it does not matter whether your data is in a local file, a local server, or a cloud server such as MoneyWorks Now. The MCP server also supports running multiple instances of MoneyWorks Gold, so you can work with several companies simultaneously.

Requirements

  • MoneyWorks Gold 9.2.5 or later

and a desktop AI client app that supports local stdio MCP servers; currently, the best choice for this is:

MoneyWorks does also include install support for the OpenAI Codex

  • OpenAI Codex aka ChatGPT — Codex download page
     
    Very recently, OpenAI has mashed-up ChatGPT and Codex into one humungous app that is a bit of both. The installation process should still work, but OpenAI may have broken it with some versions, so make sure your installation is fully up to date. If the install fails, you can install manually using the settings described in Model Context Protocol

Setup

In MoneyWorks Gold:

  1. MoneyWorks Preferences → AI → Configuration…
  2. Click the checkbox to enable the MCP server (you do not need logging)
  3. Click Install into Claude and/or Install into Codex
  4. Claude should offer to install MoneyWorks MCP. It will show a scary warning, however the MoneyWorks MCP will not in any way give Claude access to everything on your computer. The Codex install doesn’t have any UI in the app; you will just get a confirmation of the installation. You should restart Codex for it to load the server.
     
    Windows Note: Some security settings on Windows may prevent MoneyWorks from installing into Claude for you (you might get an “Access is Denied” error from Windows). If this happens, you can install it manually by going to Settings → Extensions → Advanced Settings → Install Extension and selecting the moneyworks-mcp.mcpb file in the MoneyWorks Gold folder in Program Files

Data privacy

Be aware that if you let the AI app export or analyse your data or run reports, the data will be transmitted to the AI provider’s servers. That is a matter between you and the AI provider. If data privacy is a concern for you, do not use 3rd party AI.

Claude has a Help Improve our AI models option in its Privacy Settings (File → Settings → Privacy). At the very least, it is a good idea to turn this off to indicate that you do not want your data to be used by Anthropic for AI training. ChatGPT et al will have similar settings.

If you want to use your data with AI and retain complete data privacy, you would need to run your own AI inference. See Model Context Protocol

Privileges

Any actions/enquiries the AI takes will be subject to the privileges you have in the file you are logged into.

In the User Privileges for users in documents that you want to access via the MCP server, enable the following privileges:

  • MCP Server (AI) Access
  • Expression Evaluation
  • Exporting
  • Importing

Do not enable the “MCP Server (AI) Access” for users that should not have AI access to the document. Note that in MoneyWorks Gold 9.2.5, disabling the Expression Evaluation privilege does not prevent typing expressions into entry fields starting with an = sign, but it does restrict the functions available to only those that do not query the database.

Reports that might be accessed via the MCP server are subject to per-report privileges, or — for custom reports — report signing per-user (or else the Report Signing privilege itself)

The MCP Server Access privilege applies to the auto-loaded MCP server. Turn off this privilege to prevent casual/accidental exfiltration of business data to AI providers.

AI Queries

That’s it. With the server enabled, and appropriate privileges, you can now ask your AI to run reports and data analysis, open recent MoneyWorks files, and even find records and display them in MoneyWorks.

You should always begin an AI session by mentioning that you will be working with MoneyWorks, so that the AI knows to use the MoneyWorks MCP server. You might want to use a project for the purpose.

Examples to try:

  • Please open the MoneyWorks sample file
  • How is the balance sheet looking?
  • Analyse the last 3 months’ sales breaking down by customer
  • Open the MyCompanyLimited file from my recents in a new instance of MoneyWorks
  • Set the colour of all of the sales invoices in Acme Widgets with a value over $1000 to red
  • Find and display in MoneyWorks all of the invoices for customer SPRING
  • Write me a MoneyWorks relational search expression to find all sales invoices for products whose colour is red
  • Create an optimal delivery route for the delivery addresses in the highlighted sales orders and show me the resulting map

In MoneyWorks Gold 9.2.7 and later, write and explain reports and scripts:

  • Please create a new report in MoneyWorks that prints the first 1000 prime numbers
  • Please open the MoneyWorks standard Balance Sheet report in the report editor and explain to me how the report works
  • Write a new MWScript in MoneyWorks that adds a toolbar icon in the transaction entry window for sales orders that pops up a product list window where the user can select several products and click Add and the selected product codes will each be added as new line items (with a default qty of 1) to the sales order

AI-generated responses can have mistakes (as can human-generated responses). The MCP server does not give the AI much scope for doing damage, and it should always confirm with you before doing something destructive like cancelling a transaction.

Company Context

If you want to provide additional context or prompts about your company to improve AI responses, the AI can read the text of a script named (exactly) Instructions.md in the document scripts. It can be plain text or you can use Markdown formatting. Open the Scripts window, click the [+] in the bottom left to add the script and use the name Instructions.md.

Working with other files on your computer

If you want the AI client to be able to access files on your computer (such as a folder of PDF invoices that you want to have the AI import), you will need to allow the AI direct access to a folder on your computer — it will ask for permission. Files you drop into the Clause app will not be able to be passed to MoneyWorks.

Installing updates

After updating MoneyWorks, AI clients will lose their connection to the MCP server (since it has been replaced with a new one). You should quit and restart any AI client you are using to encourage it to reconnect. On Windows, you will need to right-click on the icon in the system tray to properly quit (Claude and Codex keep running even when you close the main window).

Troubleshooting

  • If the AI app cannot connect to MoneyWorks in the first instance check that you have enabled the MCP server, installed it into your AI client, and have the AI access privilege for your user in MoneyWorks.
  • If there are connection errors between the AI app and MoneyWorks, try restarting both.
  • The MoneyWorks MCP server uses localhost HTTP loopback networking to communicate with running MoneyWorks Gold instances. If the AI client app can connect to the MCP server but all tool calls to MoneyWorks Gold itself consistently fail even after restarting both, a likely culprit on Windows is antivirus or “security” software blocking network traffic.

Other AI clients

These clients do not currently support local MCP servers:

  • Manus — has a desktop app, purports to support local MCP servers, but does not
  • Copilot — does not support local MCP
  • Deepseek — does not have a desktop app

You can connect other AI clients such as gemini-cli / Antigravity or self-hosted models by configuring them manually. See Model Context Protocol

Posted in Uncategorized | Comments Off on Using AI with MoneyWorks

Change History for 9.2.5

May 2026

  • MCP server to allow your AI to work with MoneyWorks Gold
  • Calendar updated holidays to end 2029
  • Analysis window will run report on the server when creating/testing a new report (the same as for saved analysis reports) which is much much faster
  • Support the new subscription version of Numbers.app which has a different (but hidden) real name
  • Fixed: Adding department to group could acquire and not release additional single user locks
  • Fixed incorrect coachtip for Received Goods Before Invoice when serial tracking off
  • Fixed CSS injection for mail composer
  • Fixed Reorder stock to handle existing orders that have had the Recv field cleared (and prevent inadvertent clearing of that field)
  • Fix potential failure of Clear Bank Recs to fully reset the reoncciliation status of all line items; also protect the operation with a database transaction to prevent partial rollback
  • Assets: Added Canada Depreciation 50% for the first year
  • Assets: Fix department mismatch function
  • Assets: Fix bad search error
  • Fix stocktake entry field sometimes being misplaced on Windows
  • Fix incorrect (discounted) unit price for tax-inclusive products for customers with a tax code override
  • Fix spurious error when emailing from preview after testing custom form
  • Fixed account sticky note display by transaction type
  • Now possible to set passwords longer than 16 characters
  • Currency revaluation no longer treats currency gain/loss as realised
  • Reversing backdated Rate Change journals have ref numbers starting with “JX”
  • Saving a form no longer thumbnails it twice
  • The Expression Evaluation privilege is no longer required to evaluate simple in-field expressions, provided the expression does not use functions that access the database. This privilege absolutely should be turned off for users who should not have free access to all data
  • Fix typos in BAS guide
  • Windows clients now load SSL certificates from the “CA” and “AuthRoot” stores as well as the “ROOT”
  • Closing a duplicated transaction window via the close box on Mac will no longer put back the allocated reference number
  • Copying records as XML now exports all importable fields (terse export used to exclude system fields even though some are required for importing, e.g. Contra)
  • Revised and expanded the help text for reports in the Index to Reports
  • update to openssl 3.4

Hotfixes — June 2026

  • Fix library linkage for very old macOS versions
  • Fix user2 XML importing
  • Fix COM GetObject starting the CLI instead of MoneyWorks Gold
  • Mail composer much faster initial loading on windows
  • Server logs client buildnumbers
  • Quirks mode for iBodyshop
  • Calendar: Fixed date for Matariki this year
  • Fixed Stock JN privilege check
  • Fix XML work-it-out for payment invoiceID
  • 202606.29.1310 Fixed the Stop button getting disabled when processing a large order batch

Server

  • Document password failure rate-limiting to mitigate brute-force attacks
  • Support for loading scripts in REST workers (see below). This is for private servers. We will not be enabling this on MoneyWorks Now servers
  • Fixed update notes opening in browser when the updates tab is reselected on Windows
  • Server-Timing: header provides an indication of the worker process that processed the request and the CPU time. This can be used to help with optimising your requests
  • Removed cache-control header
  • Partition temp files on multi-tenanted servers
  • Configurable server autosave behaviour nightlyAutoSaveIfUnsavedForHours = 5 nightlyAutoSaveHour = 23 in .conf file
  • Windows: Do not allow document root to be in file share or OneDrive etc
  • Fixed memory leak in SSL setup that could particularly affect long-running Console document status querying on SSL-enabled server
  • Port 80 HTTP server is now optional for LetsEncrypt/ACME. If you have an HTTP server that can proxy :80/.well-known/ for your MW domain to the DC port 6700, you can do that

Scripting

  • MoneyWorks Gold now includes the moneyworks CLI (on Mac it is in the Helpers subdirectory of the .app)
  • Call MWScript scripts from REST. see Accessing MWScript scripts on the server from REST
  • GetHTTPRequestPayload(bAsPath), GetHTTPRequestHeaders(), PutHTTPRequestResult(file) for use by server-executed scripts
  • MWScript in MoneyWorks Gold can start an HTTP server on localhost with requests serviced by a handler — StartHTTPServer(handler, [port]) (MCP server uses it). This HTTP server can also support SSE via Accept: text/event-stream. Use SSE_Send(server, data) to push SSE data to all listeners
  • CLI moneyworks can run a custom stdio command shell via -j handlername
  • Debugger: newly instantiated variables are displayed in red
  • Objects returned by JSON_Get no longer need to be freed with JSON_Free. These objects will display as the referenced json in the debugger (it is re-stringified from the object). You will still get NULL when getting a non-existent node. These objects are invalidated when you free the root object returned by JSON_Parse.
    IMPORTANT NOTE: if you have scripts that expected to use objects from JSON_Get after having freed the root object from JSON_Parse, those scripts will now get an error.
  • Select sign option when opening a signed package if the signing key is available
  • Do not enable signing for .mwscript file format
  • The “recall” XML importing option for replacing a transaction with update="true" will now update an unposted transaction or unprocessed order in place, rather than importing a new transaction and deleting the old one. In this case the sequencenumber will remain the same
  • Improved error reporting for REST evaluate endpoint (message rather than error number)
  • Suppress click counting on list headers
  • Fix newlines in REST evaluate output sometimes being modified by the server
  • GetFieldAttribute(target, i, "kind"), GetActiveField(win)
  • Fix JSON_AsArray crash when the JSON root is an array rather than an object
  • Non-mwscript files in a script package now show with document icons (for known extensions, e.g. .js, .json, .md, .html)
  • Non-mwscript files in a script package now save as their own type if you right-click to save as a file
  • Syntax colouring for non-mwscript files package files, based on either the extension or the initial characters of the text
  • Fixed ExpandDetail et al for the case where two forms might be generated simultaneously (as can happen for navigator forms)
  • Allow UpdateOrderLines to work when called from the After handler of a transaction
  • GetMWEnv(what) function to get functions, globals, constants, instances
  • StartMoneyWorksInstance(url) to start another MW instance
  • DoReport now automatically sets from and to from period or year like the report settings dialog does. Also from and to are no longer case-sensitive
  • Replace(src, pattern, repl, [pattern, repl]...) fucntion can take additional replacement params
  • Paths can begin with ~/ and / directory separators are respected on Windows
  • GetPlugins("report_desc", reportname) gets the required parameters for report
  • BeforeGeneratingForms handler for preprocessing records. A form can be set to call this handler in a particular script. The script must be loaded when you configure the form in Form Options
  • URLDecode()
  • GetCommandLine() function
  • ProcessType global = “cli”/”gui”
  • Transaction.PayNowToken field
  • Exporting “xmlschema” has expanded field attributes and corrects the field lengths which were off by one
  • DocumentPath now returns a proper URL for connections
  • Several script-only functions are now available to normal expressions
  • Analyse() is less fussy about dates needing to be be date type. An 8 digit number will be considered to be a yyyymmdd date
  • SetErrorHandler(handler) function will call the function and return a TypeError result from functions that would normally throw a runtime error. This is particularly useful for the Val function if it is being used with user or AI input that may cause it to fail
  • GetErrorNumber(err) function
  • GetErrorMessage(err) function
  • TypeError constant for testing of error return values
  • UserLoggedIn handler is no longer called twice on login
  • StdOut function outputs a line of text to stdout
  • AddDashboardPage add an html page or url to the Navigator dashboard
  • RemoveDashboardPage remove an html page from the dashboard
  • Script editor has a unique syntax colour for MoneyWorks globals
  • Using the DoReport function will no longer change the user’s output mode for that report to Clipboard
  • Outputting reports as text, including with DoReport will now output a chart as the original tabular data instead of omitting the chart. The chart data is bracketed with # start/end of chart data so that AI clients can render the chart themselves
  • XML importing now automatically moves all work-it-out fields to the end of the record so that they do not fail when placed before imported fields that the heuristic depends on
  • Document names in URLs should no longer be case-sensitive (which has historically caused a lot of frustration for REST client developers)
  • TransformXSLT(xml, xsl) function
  • Script editor autocomplete is suppressed after <<
  • Account Entry was not getting EnterField messages
  • Fixed crash using Find Again in script editor on Windows
  • Export() function search expression now gets the caller’s context so you can reference a selection variable in the search
  • Before handlers now get the window id and extra context passed as parameters
  • CLI has a MWScript debugger -g
  • CLI on Windows has a prompt when connected to a tty (to more easily differentiate between the command mode and the debugger prompt)
  • CLI syntaxcolour script='path' format='HTML|RTF|ANSI' bg='light|dark'
  • Load-time script compilation no longer logs an error when intrinsics are hidden by identifier names in the script
Posted in Change History | Comments Off on Change History for 9.2.5

Change History for 9.2.4

December 2025

General

  • Windows 32 → 64 bit migration If you have the 32-bit MoneyWorks Gold installed, this update will migrate your installation to 64 bit MoneyWorks Gold. The install location will change from Program Files (x86) to Program Files (so if you have a pinned taskbar icon, you will need to update it). 64-bit Windows OS is required.
  • MoneyWorks Gold Windows arm64 support. If your Windows computer has a Snapdragon (ARM) processor, the universal installer will migrate your (32- or 64-bit) MoneyWorks Gold to the arm64-native version. Updating an existing MoneyWorks Gold 32-bit installation will move it from Program Files (x86) to Program Files.
  • Mail composer now has an option to use plain text only (especially useful if you are sending via your mail app)
  • Use Microsoft Print to PDF should work more reliably (was failing on some Windows installations)
  • Restored the missing PPD Disc column to invoice receipting
  • Fixed Mail Merge with MAPI
  • Batch-mode emailing server-rendered statements no longer truncates the PDF after the first statement
  • Modeless MAPI is no longer forced modal when database is a local document
  • Bank Rec cosmetic improvement for Windows HiDPI
  • Bank Rec: old reconciliations are reloaded in transaction date order
  • Build dialog cosmetic fix
  • Uninstaller on Windows updated
  • Mail templates can be pinned in Mail Merge
  • The email composer now self-hosts the quill editor
  • Fix repeated export of report to file/spreadsheet etc switching to email mode (9.2.3 bug)
  • PDFs attached to messages in the local mail client (Mail, Outlook) now have better handling of name collisions
  • Improved naming of reports generated as PDF mail attachments
  • Enabled right-click → Help in modal windows on Windows
  • Logging out of a document no longer closes non-document windows such as script or report editors
  • Switch back to classic linker on Mac to give a little bit more grace for antique macOS versions
  • Fixed option-copy payments to clipboard (9.2.3 bug)
  • Removed unused language lexers from Lexilla.dll since some of the text can evidently make particularly stupid antivirus delete the file
  • Fixed potential report setup dialog failures on macOS Tahoe
  • Emailing server-generated statements now reliably gets the addressing information
  • SMTP now has a shorter timeout to prevent hangs with a non-existent SMTP server
  • Better detection of HTML when passing email message to Outlook on Windows
  • Force plain text mode in mail composer if mail mode is MAPI
  • Disable MS Print to PDF if selected on Windows 10 because it does not work on Windows 10

Asset Register 1.1

  • Dispose of asset with personal use might not work correctly
  • Departmentalised account may not work as a depreciation
  • Feature Request – Fixed Assets Amend Existing Asset
  • Fixed Assets – don’t zero out accum depn in the asset record when disposing asset
  • Import categories does not accept a depreciation value of zero
  • Part disposal of asset might give wrong new book value
  • Error when Importing Assets with zero depreciation rate
  • Report that calculates depreciation for the end of the current financial year
  • Asset Register Report to Show Depreciation Rate and Method
  • On sale, Current Yr Depreciation is reversed from GL but not reversed from Asset

Server

  • MoneyWorks Datacentre Windows arm64 support. Universal installer will install 64-bit x86_64 or arm64 as appropriate.
  • Installer on Mac no longer demands “Documents” access
  • Fix minor memory leak for sql handles
  • Fix diagnostic log names on Windows
  • Console has more immediate updates info in the Updates tab

Scripting

  • Fix UI editor scaling issues with popups on Windows HiDPI
  • LoadURLInWebView(url, [userContentJS]) now takes an optional usercontent javascript injection to be loaded after the page loads
  • LoadURLInWebView) now explictly makes a file:// URL’s directory readable to the webview
  • GetModulePath() returns the path of a script’s own package for externally loaded packages
  • fListMode_NoEditTools no longer results in a crash if you press enter in the list
  • "useTahomaForUI" app preference
  • Implement Open Link in New Window for WKWebview → opens in browser
  • Work around Webview2 bug where it does not reliably become visible after being created invisible
  • Text fields with scroll bars will now always ignore the click selects field user preference
  • Fix Upper crash if passed non text param (9.2.3 bug)
  • The email composer now self-hosts the quill editor inside a .mwpkgd which serves as sample code for the scenario
  • Opening a preloaded package in its original location or with the same leaf path now posts a coach tip letting you know the original instance was unloaded. Similarly if you have such a package open when you open a document, reactivating a script in the package will alert you about unloading the autoloaded instance
  • CLI convertpkg will do a simple copy if the src is already a .mwpkgd
  • IWebBrowser2 (old Windows web view) no longer opens in external browser when you call LoadURL a second time
  • Mail() to mail client with suggested name no longer renames a non-temp source attachment file (if necessary it copies into Temp first)
Posted in Change History | Comments Off on Change History for 9.2.4

Creating messages with attachments in Outlook

Windows

MoneyWorks supports creating messages and adding attachments in Outlook. But only in “Real” Outlook.

Microsoft has been aggressively pushing “New” Outlook, which is not a local app but just a wrapper on the website outlook.live.com. As merely a webpage, the “New” outlook has no support for local automations, so MoneyWorks cannot communicate with it to make messages for you. If you want to create messages from MoneyWorks in Outlook, you must use real Outlook.

On Windows, MoneyWorks offers two methods of interfacing to Outlook: Via Simple MAPI, or via the Outlook automation API. “New Outlook” does not work with either.

  • Ensure you have real Outlook installed. This is part of Microsoft Office
  • Real Outlook is labelled Outlook (classic). It has an option to switch to New Outlook. Do not use that. If you have switched on New Outlook, look in the top right of the window for a switch to turn off New Outlook

Mac

On Mac, MoneyWorks uses the Apple sharing API to create messages with attachments in the default mail client. New Outlook does not properly support this API.

  • Ensure you have real Outlook installed. This is part of Microsoft Office
  • Outlook has has an option to switch to New Outlook. Do not use it. If you have switched on New Outlook, look in the top right of the window for a switch to turn off New Outlook
Posted in FAQ | Comments Off on Creating messages with attachments in Outlook

Change History for 9.2.3

Nov 2025 — 202511.11.1237

General

  • New email composer allows formatted emails, saving and loading of email templates, and testing of mail merge. You can also use it for composing emails that will be sent to your Mail/Outlook app — not just for SMTP
  • Standalone mail merge function for mailshots with mail merge
  • Multibyte unicode characters sent to Windows Outlook no longer turn to mojibake
  • Fixed cosmetic issues with text editing in line item cells on Windows at higher screen resolutions
  • Sorting by fields containing @ signs (such as email address) now works properly. They were inadvertently being treated as wildcards for sorting
  • The title of list printouts is no longer stored, since it could apply the wrong file name when you switch documents; the filename is also no longer included by default
  • “Plain” invoices now remember the selected output mode
  • Various improvements to HiDPI support on Windows
  • Improved the reporting of SMTP authentication errors
  • Windows UI font updated to Segoe UI Emoji where available
  • Product margin display in the Selling Info tab is now consistently based on buy price
  • Reorder counted products takes the current count into consideration
  • Auxiliary document windows now show a changed indicator (•) on Windows
  • Prevent drill-down from creating an additional writeable window for an already-open transaction (if this happens, the window will be read-only to prevent the same transaction potentially being posted twice)
  • Prevent all system control accounts of a particular type from being user-disabled via a tilde prefix. There must be at least one of each type
  • HiDPI fixes on Windows for status column formatting and drill down button drawing
  • Fix lack of drilldown icon click highlight with Windows compositing
  • Small popup menus on Mac increased to regular size for better rendering on Tahoe
  • Fix Name enquiry privilege handling when only one of Sales/Purchases is enabled
  • Fixed Mac edit fields no longer using monospaced digits since Big Sur
  • Fixed read-only edit list rows not getting background colour when active on Windows
  • Tahoe-compatible app icons
  • Fixed an automation crash on Tahoe
  • Fixed creation of multiple messages in mail app with attachments with the same suggested name (filenames are now forced unique with a timestamp since the process is not synchronous)
  • Fixed saving of PDF files using libHaru to paths containing non-ASCII characters on Windows
  • Fixed mail merge attaching a spurious temp file
  • Mail composer: Enable Send Message button without an email address being entered when message will be created in the local mail client
  • Fixed performance issue with progress window on Windows especially when a WebView2 is visible
  • Fixed message body not being passed to Simple MAPI
  • Rebuild template menu after deleting a template
  • Fix privileges checkbox positioning for HiDPI (Windows)
  • Fix Save A Copy as (verbatim) breaking scripts
  • Add build number to welcome screen
  • Fix zero amounts being displayed in Bank Rec in 32 bit-bit Windows Gold client
  • Fix incorrect email addressing for batch mode SMTP when form is generated on the server due to high network latency
  • Fix errors thrown by Mail merge
  • Fixed mail template saving (and in fact all sqlite3 functionality) which was not working over a network for 32-bit Windows clients

Server

  • Let’s Encrypt support for automatically obtaining and renewing SSL certificates. If you use SSL/TLS you will soon need to have automatic renewal because certificate lifetimes are going to shorten to 45 days. To use Let’s Encrypt with the ACME challenge, you need to be able to forward port 80 to the server.
  • Exporting and copying records is now much faster on high-latency networks
  • Certificate private keys are now preferentially stored in a separate .key pem file instead of the cert .pem file. If you will obtain certificate renewals by other means, this makes it easier to automate copying new certificates into the Datacentre configuration
  • The same certificate is now used by default for REST and native protocol network services; you do not need to specify them separately, although that is still available as an option
  • Fixed potential bad log data in IP address for HTTP/S logging
  • Changing a server’s timezone while users are logged in will no longer risk logging them out
  • Clean up temp files when user cancels a server-side report (on Windows Server 2016 and earlier, these could accumulate for years in C:\Windows\Temp)
  • Server alerts will no longer complain about offline backup volumes overnight
  • Recovery after a database crash is faster
  • Console displays the server’s primary IPv4 (enet preferred)
  • Installer creates Windows firewall rules to allow UDP multicast for mDNS because it seems to be blocked at a lot of Windows sites

Scripting

Note that the first couple of fixes here change some behaviours that could potentially break existing scripts if they rely on the undocumented and unintended behaviours that were fixed.

  • Nowdoc strings no longer interpret \ as an escape character (this will be a breaking change if you have scripts where you have double-escaped newlines as \\n to make them work in, e.g. javascript) [potential breaking change]
  • WebViewControl no longer changes unspecified options (in particular, using it to set the browser technology option useWKWebview or useWebView2IfAvailable for one platform would have the side effect of setting the option for the other platform to false)
  • External packages – a standalone script window can be saved as a binary or directory package (as well as XML deployment), The package can be codesigned and later be loaded using LoadScriptFile
  • LoadScriptFile(packagePath, publicKeyArray, domain) returns false if package fails to load, see log for reason. The function now also expands paths beginning with “CACHE/” or “TMP/”
  • Script editor window dirty indicator on Windows
  • PutClipboardText flakiness on Windows; now properly supports unicode text; it ill also put text as HTML if it looks like HTML
  • SetFieldValue(win, ident, value, [flags]) 1 = append; 2 = preserve window modified state
  • Unzip(src, dst) function
  • Debugger context help now works for looking up highlighted function/handler in the manual as for the script editor
  • Public handlers can be called from custom column expressions (they will be optimised first with an assumption that the result will not vary across records in the list, so every row will see the same result — useful for accessing a global setting)
  • ContactRoles global variable — semicolon-delimited list of role names
  • GetRoleForRoleName function maps a role name to a role number
  • Fixed potential window modality failure closing a scripted modal window
  • When activating a script from the Script Editor, the script editor will now call a LoadFromScriptEditor handler that you can use for testing a script rather than putting test code into the main Load handler
  • Select All in the Windows script editor (and scintilla generally) now actually selects all rather than falling short when the text contains multibyte characters
  • Updated to the latest Scintilla + Lexilla libraries. If you store html+javascript as a named script for use with GetScriptText, it will now be syntax-coloured
  • ModalListWindow and CreateListWindow now support hosting a WebView2 in the same window
  • ModalListWindow and CreateListWindow now check that a document is open
  • SetFieldValue on a tab control can now be used to replace the tab definition if the given value contains semicolons
  • Script Editor no longer clears breakpoints when you select another script. Breakpoints remain as long as the editor window is open
  • The debugger will no longer allow you to unload a script from a breakpoint inside a callback handler that was called from a library, since that would dispose the library’s object from under it
  • Curl_Exec should now provide better results from GetLastErrorMessage when errors occur
  • Libcurl’s CURLOPT_DEBUGFUNCTION may now be used
  • Navigator("prvw:path/to/file.xml") will open a preview xml file created via DoReport or DoForm with output format xml
  • Script Editor context menu copy selection as styled HTML or RTF preserving syntax colouring for documentation purposes
  • InsertVars() can now see fields from a table loop control variable (using either the variable name or the table name as a prefix)
  • ProgressStopped() function enables regular users to stop a long running operation in a script
  • It is now possible to make a very narrow popup menu that will open as a full size combo box on Windows (it will temporarily resize itself when opened)
  • Ask() now accepts a "width" parameter to set the window width in points for when you need a wider entry field
  • Record-specific functions that were previously only available for loop control variables in the report writer may now be used with table loop control variables in MWScript: prod.StocktakeNewQtyForLocation, prod.StocktakeStartQtyForLocation, prod.SOHForLocation, prod.SellPriceForPriceCode. prod.AvailableStockForBatch, name.GetContactForRole, ldgr.GetMovement, and ldgr.GetBalance
  • REST xml-terse export is now slightly less terse (it includes the LastModifiedTime field). This field will be ignored if importing the same XML
  • Custom window text field mnemonics <BORD> to apply a border to an <SBA2> type field; <LOCK> to make a field read-only without appearing disabled on Windows
  • GetReplyTo function to get the reply-to address for the current user (if an override has been specified)
  • Fixed ugly Webview2 borders in custom windows
  • Fixed multipart alt + mixed MIME formatting in the internal SMTP function
  • Fixed some potential script editor crashes
  • Fixed crash with very large data export via Applescript
  • Inappropriately calling WriteCurrentRecordForWindow will no longer bring down the server
  • Sort(tabulartext) no longer strips commas from the text
  • Curl_AsyncExec(curl, completionHandler) to run a curl request in a background thread and call a completion handler when it finishes
  • Curl_GetOpt(curl, opt) for retrieving handles from the curl handle
  • CallHandler(handlerName, ...) for patching callbacks
  • ConfirmClose(winRef) handler for custom windows; return false to cancel closing
  • PATH_SEP constant ("/" on Mac, "\" on Windows)
  • convertpkg src="some.mwpkg" dst="some.mwpkgd" CLI command for converting binary packages (useful for checking into version control)
  • LoadPicture no_pic option now works when a picture has already been loaded
  • Export() function, plus CLI, Applescript, COM, and REST export now support "json", "json-verbose", "json-terse", "sql", "sqlite", "sql-drop-create", and "sqlite-drop-create" as an output format. Dates and times are formatted as ISO8601
  • JSON_GetArray(jsonRef, id, ...) similar to JSON_Get but returns a JSON sub-object as an associative array
  • JSON_AsArray(jsontext) parses the JSON to an associative array
  • DuplicateTransaction(seq, bSameRef) function
  • Fix crash with malformed Ask() parameter list
  • JSON_Free no longer gives an error if given a null handle
  • Handlers and properties now have a distinct syntax colour from built-in functions
  • ⌘-click on a handler name to jump to declaration (Esc to return to where you were)
Posted in Change History | Comments Off on Change History for 9.2.3