Have you tried digging into the app bundle and using the same command a
given before:

/Applications/NetBeans/Apache\ NetBeans\
11.3.app/Contents/Resources/NetBeans/netbeans/bin/netbeans --open
file1[:line1]...

On Fri, Jan 15, 2021 at 9:41 AM Thomas Wolf <tjw...@gmail.com> wrote:

> Hi again,
> You wouldn’t happen to know how to do this on Mac, would you?  I tried
> this:
>
>      open -a /Applications/NetBeans/Apache\ NetBeans\ 11.3.app --args
> --open $PWD/try1.xml
>
> But this has two effects, depending on whether Netbeans is already
> running: if it is, Netbeans simply comes to the foreground, but the file is
> not opened.  If Netbeans wasn’t running, it starts up and immediately quits
> again.
>
> Any further info much appreciated.
> Tom
>
> On Jan 14, 2021 at 11:07:57 PM, Laszlo Kishalmi <laszlo.kisha...@gmail.com>
> wrote:
>
>> Yes. It uses the existing opened instance if it's running.
>>
>> On 1/14/21 7:56 PM, Thomas Wolf wrote:
>>
>> Hey, thanks Lazlo - will that use a currently running netbeans if it’s
>> running?  If so, this is good enough for me!  Sorry for the poor wording -
>> when I said “remote” I should have said “external” (like outside the
>> netbeans process/jvm)
>>
>>
>> Thanks a bunch!
>>
>> tom
>>
>>
>> > On Jan 14, 2021, at 10:53 PM, Laszlo Kishalmi <
>> laszlo.kisha...@gmail.com> wrote:
>>
>> >
>>
>> > I do not know what and how the "remote" part would work, but you can
>> do from CLI:
>>
>> >
>>
>> > netbeans --open file1[:line1]...
>>
>> >
>>
>> >
>>
>> >> On 1/14/21 7:34 PM, Thomas Wolf wrote:
>>
>> >> I don’t know.  But when I say “API”, I mean it in a loose sense: eg in
>> many OS file types can associated with an application so that when you
>> double-click on it, that file is opened.  In some cases without another
>> instance of the application getting started.  The passing of the file name
>> to the app is a kind of API.
>>
>> >>
>>
>> >> thanks,
>>
>> >> tom
>>
>> >>
>>
>> >>>> On Jan 14, 2021, at 8:22 PM, Mark A. Flacy
>> <mfl...@verizon.net.invalid> wrote:
>>
>> >>> Greetings,
>>
>> >>>
>>
>> >>> I must ask if there are other IDEs which do have such APIs enabled by
>> default.
>>
>> >>> I wouldn't want something like that to be available (by default) on
>> *any* IDE
>>
>> >>> that I use.
>>
>> >>>
>>
>> >>> --
>>
>> >>> Mark A. Flacy
>>
>> >>> mfl...@verizon.net
>>
>> >>>
>>
>> >>>> On Thursday, January 14, 2021 5:30:21 PM CST Thomas Wolf wrote:
>>
>> >>>> Hi,
>>
>> >>>> This might be a dumb question: does Netbeans have an external API
>> (e.g.
>>
>> >>>> REST) that would allow a remote program to direct Netbeans to open a
>> file
>>
>> >>>> at a given line number?  I have a program that does some analysis on
>>
>> >>>> application source code and then needs to let the user edit some
>> specific
>>
>> >>>> source files  using whatever their favorite IDE.  If possible, I’d
>> like to
>>
>> >>>> avoid writing my app as a plugin for each IDE.
>>
>> >>>>
>>
>> >>>> I’m not sure if this is actually the right mailing list to ask this
>>
>> >>>> question.  Feel free to point me to another if it’s not.
>>
>> >>>>
>>
>> >>>> Thanks,
>>
>> >>>> Tom
>>
>> >>>
>>
>> >>>
>>
>> >>>
>>
>> >>> ---------------------------------------------------------------------
>>
>> >>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>>
>> >>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>
>> >>>
>>
>> >>> For further information about the NetBeans mailing lists, visit:
>>
>> >>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>> >>>
>>
>> >> ---------------------------------------------------------------------
>>
>> >> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>>
>> >> For additional commands, e-mail: users-h...@netbeans.apache.org
>>
>> >>
>>
>> >> For further information about the NetBeans mailing lists, visit:
>>
>> >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>> >>
>>
>> > ---------------------------------------------------------------------
>>
>> > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>>
>> > For additional commands, e-mail: users-h...@netbeans.apache.org
>>
>> >
>>
>> > For further information about the NetBeans mailing lists, visit:
>>
>> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>> >
>>
>>

Reply via email to