on alfred_script(q)
tell application "Google Chrome"
if it is closed then
activate
end if
else
make new window
tell application "System Events" to set frontmost of process "Google Chrome" to true
activate
end else
end tell
end alfred_script
我的appleScript代码出了什么问题
如果谷歌浏览器打开,我只想打开新终端,否则只需运行谷歌浏览器。
这将是一个阿尔弗雷德工作流程。