Re: Launching another app with command line arguments
Re: Launching another app with command line arguments
- Subject: Re: Launching another app with command line arguments
- From: "A. Reichstadt via Cocoa-dev" <email@hidden>
- Date: Sat, 20 Jun 2020 16:25:50 -0700
Write stuff to location in file the other app knows about, then read it.
Sent from my iPhone
> On Jun 20, 2020, at 16:17, Gabriel Zachmann via Cocoa-dev
> <email@hidden> wrote:
>
> Thanks a lot for your reponse.
>
> Yes , it is sandboxed.
>
> ... Argh, the *last* line of the docs of configuration.arguments tell that
> those are ignored! :-(
>
>
> So, the new question is: is there any easy way how my app A can launch my app
> B
> and pass a simple piece of info from A to B, such as a boolean flag or an
> integer?
>
> I googled a bit, and XPC or mach messages seems way too complicated for the
> simple flag I'd like to pass.
> I couldn't determine whether UserDefaults might work (since both apps are
> sandboxed).
>
> Does anyone have any ideas?
>
>
>
>>
>>>
>>> That works fine, *except* the command line arguments are not passed along
>>> :-(
>>
>> Is your app sandboxed? Arguments are ignored in sandboxed applications.
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden