• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Environment woes executing scripts from my OS X app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Environment woes executing scripts from my OS X app


  • Subject: Re: Environment woes executing scripts from my OS X app
  • From: Peter <email@hidden>
  • Date: Wed, 16 Dec 2015 14:16:25 +0100

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 <email@hidden>:

> 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 <email@hidden> 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
>> 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
> _______________________________________________
>
> 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


___ Peter Hartmann ________

mailto:email@hidden



___ Peter Hartmann ________

mailto: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


References: 
 >Environment woes executing scripts from my OS X app (From: Rick Mann <email@hidden>)

  • Prev by Date: Environment woes executing scripts from my OS X app
  • Next by Date: Re: Environment woes executing scripts from my OS X app
  • Previous by thread: Environment woes executing scripts from my OS X app
  • Next by thread: Re: Environment woes executing scripts from my OS X app
  • Index(es):
    • Date
    • Thread