如何在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