I tried that in 2.6 and it did not work. You could only set fixed parameters
for the gnucash binary.
Cheers,
Christoph
> Am 05.10.2018 um 16:25 schrieb John Ralls :
>
> That’s the way GnuCash used to launch, with a bash script, but bash can’t
> AFAIK get the filename from LaunchServices.
That’s the way GnuCash used to launch, with a bash script, but bash can’t AFAIK
get the filename from LaunchServices. AppleScript or Automator script might
work.
Christoph, if you want to try that, the approach would be to rename
Gnucash.app/Contents/MacOS/Gnucash to something else and name
If it works to call gnucash with the files on the command line, can you put
the automator script (or a bash script or applescript) into the GnuCash
bundle, set the bundle's plist to call the script, and pass the command
line arguments to the gnucash binary using the script?
I don't have a modern
Christoph,
Indeed that would be confusing.
Regards,
John Ralls
> On Oct 3, 2018, at 11:46 AM, Christoph R
> wrote:
>
> Hi John,
>
> I realized that it has a flaw in general use: The automator script and
> Gnucash are treated as two different programs by MacOS and show up in the
> dock
Christoph,
I’d never even considered putting Automator into the launch process. Instead I
tried to catch the OpenFile notification from LaunchServices. The problem with
that is that we don’t get the notification until the event loop is started and
GnuCash loads the file before starting the