每 10 秒,我就会在控制台中收到几次此消息:
27.08.11 16:40:21,034 osascript: Performance: Please update this scripting addition to supply a value for ThreadSafe for each event handler: "/Library/ScriptingAdditions/SIMBL.osax"
我想知道这意味着什么以及我应该做什么。
另外,我可以做些什么(卸载 SIMBL 除外)让 SIMBL 停止向系统日志发送垃圾邮件?
我需要合并两个 osascript 脚本,以便通过一个命令我可以打开一个新的终端选项卡并echo hello在该新选项卡中执行类似的脚本。
这会打开一个新的终端选项卡。
osascript -e 'tell application "Terminal" to activate' -e 'tell application "System Events" to tell process "Terminal" to keystroke "t" using command down'
Run Code Online (Sandbox Code Playgroud)
这个打开一个新窗口并运行 echo hello
osascript -e 'tell app "Terminal" do script "echo hello" end tell'
Run Code Online (Sandbox Code Playgroud)