# Statring a JuceApplication using startAsProcess()

**URL:** <https://forum.juce.com/t/statring-a-juceapplication-using-startasprocess/7789>\
**Category:** General JUCE discussion\
**Created:** [November 28, 2011, 2:22pm UTC](https://forum.juce.com/t/statring-a-juceapplication-using-startasprocess/7789 "2011-11-28T14:22:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shlomi](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/shlomi/32/99_2.png) [@Shlomi](https://forum.juce.com/u/Shlomi)\
**Post date:** [November 28, 2011, 2:22pm UTC](https://forum.juce.com/t/statring-a-juceapplication-using-startasprocess/7789/1 "2011-11-28T14:22:15Z")

</div>

Hi

In OSX, when I’m trying to pass a parameter using startAsProcess(), in the JuceApplication::getCommandLineParameteres() I get weird stuff like  
-psn\_0\_508028.

When I run the JuceApplication from the command line without any parameter, I also get this weird stuff from the getCommandLineParameteres().

In Windows it works fine.

I tried starting a dummy shell from startAsProcess(“hello”) that only prints it’s arguments, and it works fine.  
I tried running the JuceApplication from the command line using a parameter, and it works fine  
The parameter I tried to pass is “hello”.

Why can’t I get the passed argument?

Thanks!
