Page 2 of 2

Re: Command line args if launched from terminal

Posted: Tue Mar 07, 2017 10:12 am
by wilbert
Maybe you can use -n from the terminal to open a second instance and use CFNotificationCenter to send the string to the original application.
http://www.purebasic.fr/english/viewtop ... 19&t=68047

Re: Command line args if launched from terminal

Posted: Sun Mar 12, 2017 4:25 am
by coder14
wilbert wrote:Maybe you can use -n from the terminal to open a second instance and use CFNotificationCenter to send the string to the original application.
http://www.purebasic.fr/english/viewtop ... 19&t=68047
WOW!!! :shock:

That's exactly what I'm looking for and it works perfectly! Thank you so much WILBERT! :D :D :D

This must be added to the Mac forum stickies for future reference.

Re: Command line args if launched from terminal

Posted: Sun Mar 12, 2017 2:53 pm
by wilbert
coder14 wrote:WOW!!! :shock:

That's exactly what I'm looking for and it works perfectly!
Good to hear it is working for you :)
It's a nice and easy way to pass small bits of information.