I have a Apple Script Application that I use to set environment variables using several commandos like
do shell script "setenv VAR value"
But since I updated to Mac OS X 10.10 (Yosemite) this does not work any longer. I get
sh: setenv: command not found (127)
I could solve it by adding launchctl
to the line:
do shell script "launchctl setenv VAR value"
I also had the problem using nohup
in the same script and had to use the full path /usr/bin/nohup
instead.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.