Re: [GNC] Launching on Mac (was Repeatable Mac crash)

2018-10-05 Thread Christoph R
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.

Re: [GNC] Launching on Mac (was Repeatable Mac crash)

2018-10-05 Thread John Ralls
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

Re: [GNC] Launching on Mac (was Repeatable Mac crash)

2018-10-04 Thread Tommy Trussell
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

Re: [GNC] Launching on Mac (was Repeatable Mac crash)

2018-10-03 Thread John Ralls
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

Re: [GNC] Launching on Mac (was Repeatable Mac crash)

2018-10-01 Thread John Ralls
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