如何解决Applescript:如何在全屏但在特定空间中打开选定的应用程序?
我是Applescript的新手,我想制作一个(Apple)脚本,以特定的“全屏顺序”或空格(我认为是这样)来全屏打开应用程序列表。
因此,我想打开Spotify,MS Outlook和Visual Studio Code,并使用Applescript按以下顺序重新排列这些应用程序,然后重点放在桌面上:
我正在尝试使用以下脚本执行此操作:
set app1 to "Microsoft Outlook"
set app2 to "Spotify"
set app3 to "Visual Studio Code"
set thelist to {app1,app2,app3}
repeat with i in thelist
if application i is not running then
tell application i
activate
delay 1
end tell
tell application "System Events"
keystroke "f" using {command down,control down}
end tell
end if
end repeat
但是结果,我得到了:
而且我不知道如何进行。我发现this solution,但似乎在macOS Catalina上不起作用。有解决办法吗?
感谢您的咨询!
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。