[英]Adding AppleScript/osascript to PATH
Very noob question, but couldn't find a decent answer. 非常菜鸟的问题,但找不到合适的答案。
Working with a command line plugin that requires adding AppleScript to my path, but honestly not sure what the right format is. 使用需要将AppleScript添加到我的路径的命令行插件,但是老实说,不确定哪种格式正确。
I know where the script is on my system. 我知道脚本在系统上的位置。
$ which osascript
/usr/bin/osascript
But I'm not sure if this is how I would export it to my Path. 但是我不确定这是否是将其导出到Path的方法。
export PATH=/usr/bin:$PATH
Any ideas? 有任何想法吗?
Yes, that syntax is correct. 是的,该语法正确。
Also, it's likely that /usr/bin is already in $PATH by default; 另外,默认情况下/ usr / bin很可能已经在$ PATH中; that's how it is on most Unix systems, including Macs.
这就是大多数Unix系统(包括Mac)上的情况。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.