Resolved by writing an AppleScript, which I call as an app from VBA.