我有AppleScript
duplicate symbol _kServiceInfoFileName in:
/Users/APPLE/Desktop/Justride/Pods/Firebase/Libraries/libFIRCore.a(GmpMeasurement.pb.o)
/Users/APPLE/Desktop/Justride/Pods/Google/Libraries/libGGLCore.a(GmpMeasurement.pb.o)
duplicate symbol _OBJC_CLASS_$_ACPResultData in:
/Users/APPLE/Desktop/Justride/Pods/Firebase/Libraries/libFIRCore.a(GmpMeasurement.pb.o)
/Users/APPLE/Desktop/Justride/Pods/Google/Libraries/libGGLCore.a(GmpMeasurement.pb.o)
duplicate symbol _OBJC_METACLASS_$_ACPResultData in:
/Users/APPLE/Desktop/Justride/Pods/Firebase/Libraries/libFIRCore.a(GmpMeasurement.pb.o)
/Users/APPLE/Desktop/Justride/Pods/Google/Libraries/libGGLCore.a(GmpMeasurement.pb.o)
我应该得到输出 你好"先生。 X" 但是,我得到输出 你好X先生
我正在使用OS 10.10.5 Yosemite
如何使用上面的脚本
为X先生添加双引号答案 0 :(得分:2)
最可靠的语法是使用quoted form of
:
do shell script "echo " & quoted form of "hello \"Mr. X\""
或使用单引号来逃避整个论点:
do shell script "echo 'hello \"Mr. X\"'"