Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道如何使用 Script Utility 制作一个脚本,当单击该脚本实用程序时,会返回一个窗口,显示 iTunes 中正在播放的歌曲名称和艺术家。对 AppleScript 非常陌生,并且花了一个不成功的小时试图让它工作!
谢谢,内森
有一个current track属性:
current track
tell application "iTunes" tell current track to artist & " - " & name display dialog result --do shell script "terminal-notifier -message '' -title " & quoted form of result end tell
如果您需要不断更新窗口,使用 GeekTool 之类的工具可能是更好的选择。