如何使用applescript更改空间
我有以下 applescript 来跳过 Spotify 中的歌曲。如果我在全屏应用程序位于最前面时调用脚本,则在脚本完成后该应用程序将不可见。它将在不同的空间。有没有办法可以使用 applescript 使最前面的应用程序再次可见?
set front_app to (path to frontmost application as Unicode text) tell application "Spotify" next track end tell tell application front_app to activate
I have the following applescript to skip songs in spotify. If I call the script when a fullscreen application is the frontmost, the application will not be visible after the script has finished. It will be in a different space. Is there a way that I can make the frontmost application visible again with applescript?
set front_app to (path to frontmost application as Unicode text) tell application "Spotify" next track end tell tell application front_app to activate
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这可能不会让您到达任何地方,但您可以使用此脚本循环遍历所有空间,直到看到您要定位的应用程序...
This probably won't get you anywhere, but you could use this script to loop through all your spaces until you see the application you're targeting...