[GNC] Can't find file

Chris Graves mohavebaked at gmail.com
Fri Jul 31 20:09:54 EDT 2020


For those that like launching from the gui, one can create a simple shell script and automator script, then in the finder, right click the .gnucash file->services->”name of automator script” to cause a new instance of GC to open the selected file.

Shell script, named for example - gnucash which in this example resides in your $HOME directory:
#!/bin/zsh
/Applications/Gnucash.app/Contents/MacOS/gnucash $1

Then in automator:
Select New-> Quick Action
In the dialog, select Utilities->Run Shell script
 In Workflow receive current, select files or folder in Finder.app
 In the Run Shell Script dialog, select /bin/zsh
	For Pass input: select as arguments
	In the dialog box beneath the above, enter
		$HOME/gnucash “$@“

Select save and name the file —let’s call it gnucash.

Then to make use of the above:
In finder, right click on the .gnucash file of choice->services->gnucash

This will open a new instance of gnucash with the selected file.

> On Jul 31, 2020, at 1:10 PM, John Ralls <jralls at ceridwen.us> wrote:
> 
> Will,
> 
>  /Applications/Gnucash.app/Contents/MacOS/Gnucash --nofile &
> 
> works just fine here. Repeat as many times as you have files you want to open, and you may substitute the
> path to a gnucash file for --nofile.
> 
> Regards,
> John Ralls
> 
>> On Jul 31, 2020, at 11:14 AM, will at theprescotts.com wrote:
>> 
>> John,
>> 
>> I have played around with trying to open multiple instances of gnucash from the Terminal (Mac OS Catalina) without success in getting two instances running at the same time. I am pretty unix-savvy, after 40 years as a geophysicist, now I write software for a living. But so far it hasn't helped. 
>> 
>> Also, it is not that high a priority to me. The two Gnucash projects I have are completely independent so I never need to cut and paste between them. It would be a nice-to-have-but is not a need-to-have. So I haven't spent that much time trying to get it to work.
>> 
>> Will
>> 
>> On 2020 Jul 31, at 07-31 12:16:32, John Ralls <jralls at ceridwen.us> wrote:
>> 
>> macOS does not, and one must use the command line to launch subsequent instances of gnucash.
>> 
>> Regards,
>> John Ralls
>> 
>>> On Jul 31, 2020, at 3:50 AM, Frank H. Ellenberger <frank.h.ellenberger at gmail.com> wrote:
>>> 
>>> You can avod the warning by starting all except the first with
>>> gnucash --nofile
>>> or explicitly
>>> gnucash path/to/file
>>> 
>>> Each OS/desktop environment should have abilities to create
>>> corresponding links.
>>> 
>>> Regards
>>> Frank
>>> 
>>> Am 30.07.20 um 23:24 schrieb Liz Dodd:
>>>> On Thu, 30 Jul 2020 11:38:50 -0500
>>>> "will at theprescotts.com" <will at theprescotts.com> wrote:
>>>> 
>>>>> On that topic, if I someone asked me what one change I would like to
>>>>> Gnucash, my choice would be the ability to open two different files
>>>>> in different windows at the same time.
>>>>> 
>>>>> Will
>>>> 
>>>> I routinely run with 4 open Gnucash files.
>>>> 
>>>> Open up Gnucash again. It will tell you there is a lock. Choose "open a
>>>> new file" or similar. Then use the File Open REcent to find the second
>>>> file
>>>> 
>>>> I actually have a series of menu shortcuts that I use all the time
>>>> (XFCE4 on Debian)
>>>> 
>>>> Liz
>>>> _______________________________________________
>>>> gnucash-user mailing list
>>>> gnucash-user at gnucash.org
>>>> To update your subscription preferences or to unsubscribe:
>>>> https://lists.gnucash.org/mailman/listinfo/gnucash-user
>>>> If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
>>>> -----
>>>> Please remember to CC this list on all your replies.
>>>> You can do this by using Reply-To-List or Reply-All.
>>>> 
>>> _______________________________________________
>>> gnucash-user mailing list
>>> gnucash-user at gnucash.org
>>> To update your subscription preferences or to unsubscribe:
>>> https://lists.gnucash.org/mailman/listinfo/gnucash-user
>>> If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
>>> -----
>>> Please remember to CC this list on all your replies.
>>> You can do this by using Reply-To-List or Reply-All.
>> 
>> _______________________________________________
>> gnucash-user mailing list
>> gnucash-user at gnucash.org
>> To update your subscription preferences or to unsubscribe:
>> https://lists.gnucash.org/mailman/listinfo/gnucash-user
>> If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
>> -----
>> Please remember to CC this list on all your replies.
>> You can do this by using Reply-To-List or Reply-All.
>> 
>> _______________________________________________
>> gnucash-user mailing list
>> gnucash-user at gnucash.org
>> To update your subscription preferences or to unsubscribe:
>> https://lists.gnucash.org/mailman/listinfo/gnucash-user
>> If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
>> -----
>> Please remember to CC this list on all your replies.
>> You can do this by using Reply-To-List or Reply-All.
> 
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.



More information about the gnucash-user mailing list