Hm, maybe I’m getting this wrong but how about

NSTask 
- (void)setEnvironment:(NSDictionary *)environmentDictionary

Am 16.12.2015 um 13:46 schrieb Maxthon Chan <m...@maxchan.info>:

> If you can call /usr/bin/env you can use that as an intermediary.
> 
> Sent from my iPhone
> 
>> On Dec 16, 2015, at 15:47, Rick Mann <rm...@latencyzero.com> wrote:
>> 
>> I'm working on an OS X app that unfortunately has to call a series of bash 
>> and python scripts for part of the processing it does. I was able to include 
>> the scripts in my app's bundle, and invoke them there, but the environment 
>> is different when launched via my app than when launched on the command 
>> line. How can I best control the environment used when executing external 
>> scripts?
>> 
>> -- 
>> Rick Mann
>> rm...@latencyzero.com
>> 
>> 
>> 
>> _______________________________________________
>> 
>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>> 
>> 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:
>> https://lists.apple.com/mailman/options/cocoa-dev/max%40maxchan.info
>> 
>> This email sent to m...@maxchan.info
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/magnard%40web.de
> 
> This email sent to magn...@web.de


___ Peter Hartmann ________

mailto:hphartm...@justmail.de



___ Peter Hartmann ________

mailto:hphartm...@justmail.de


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to