Command line args if launched from terminal

Mac OSX specific forum
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3870
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: Command line args if launched from terminal

Post 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
Windows (x64)
Raspberry Pi OS (Arm64)
coder14
Enthusiast
Enthusiast
Posts: 327
Joined: Tue Jun 21, 2011 10:39 am

Re: Command line args if launched from terminal

Post 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.
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3870
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: Command line args if launched from terminal

Post 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.
Windows (x64)
Raspberry Pi OS (Arm64)
Post Reply