如何在 AppleScript 中打开 Finder 的新窗口?我正在使用 if else 语句来打开一个窗口。我尝试了一个Osascript
命令,但它给了我一个语法错误。代码如下:
if the button returned of the result is "Sleep" then
tell app "Finder" to go to sleep
if the button returned of the result is "Open Finder" then
osascript -e 'tell application "Finder" to open new window'
else
display dialog current time
end if
Try:
tell application "Finder" to make new Finder window
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)