简体   繁体   English

Macos:Automator 中的 Applescript 在 15.5.1 更新后停止工作

[英]Macos: Applescript in Automator stopped working after 15.5.1 update

This simple script suddenly stopped working on my MBP Monterey 15.5.1.这个简单的脚本突然停止在我的 MBP Monterey 15.5.1 上运行。 However it still works in my mac mini Monterey 15.5 and my MBP Catalina.但是它仍然适用于我的 mac mini Monterey 15.5 和我的 MBP Catalina。 The script refuses to Change Directory (cd) no matter what I try.无论我尝试什么,该脚本都拒绝更改目录 (cd)。 The result being the "npm run start" command is presented to the normal command line not the MagicMirror directory.结果是“npm run start”命令显示给普通命令行而不是 MagicMirror 目录。 Thanks for any help/advice.感谢您提供任何帮助/建议。

tell application "Terminal"
    activate
    set shell to do script "cd MagicMirror"
    delay 1
    do script "npm run start" in shell
end tell

enter code here

Not working Working不工作工作

Solved, In case anyone else comes across this problem.解决了,万一其他人遇到这个问题。 I had a Command Line util installed, autocomplete Fig.app, which conflicted with Monterey 15.5.1.我安装了一个命令行工具,自动完成 Fig.app,它与 Monterey 15.5.1 冲突。 Uninstalled Fig all good, reinstalled broken again.卸载图一切好,重装又坏了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM