使用 shellcheck 进行 AppleScript 调试
我是一个使用脚本编辑器的新手。我什至不知道这是用什么语言编写的,但我正在尝试使用 shellcheck.net 来调试它:
var=value LDMIcon to path to resource "LDM_Icon.icns" in bundle (path to me)
set CurrentOS to do shell script "sw_vers -productVersion | cut -c 1-4"
shellcheck 这样说;
var=value LDMIcon to path to resource "LDM_Icon.icns" in bundle (path to me)
>> ^-- SC1036 (error): '(' is invalid here. Did you forget to escape it?
>> ^-- SC1088 (error): Parsing stopped here. Invalid use of parentheses?
我尝试使用 github 提示(SC1036 等)修复它,但没有成功。有人可以帮忙吗?
谢谢
I am a complete novice using Script Editor. I don't even know what language this is written in, but I'm trying to use shellcheck.net to debug this:
var=value LDMIcon to path to resource "LDM_Icon.icns" in bundle (path to me)
set CurrentOS to do shell script "sw_vers -productVersion | cut -c 1-4"
shellcheck says this;
var=value LDMIcon to path to resource "LDM_Icon.icns" in bundle (path to me)
>> ^-- SC1036 (error): '(' is invalid here. Did you forget to escape it?
>> ^-- SC1088 (error): Parsing stopped here. Invalid use of parentheses?
I've tried to fix it using the github tips (SC1036 etc) with no luck. Can anyone help?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论