如何在 macOS Catalina 中获取 Music.app 的脚本字典?
How do you get the scripting dictionary for Music.app in macOS Catalina?
命令sdef /Applications/Music.app | sdp -fh --basename Music
returns
couldn't get sdef for /Applications/Music.app (error -43)
在 macOS Catalina 中,但在 High Sierra 中按预期使用它(将 Music.app 更改为 iTunes.app)
如果您打开 Music.app 的内容,您会在资源中找到字典。
Catalina 在检索字典定义方面是否有任何变化?
在 Catalina 中,所有内置系统应用程序都在 /System/Applications
(一个新的只读目录)下,不像以前那样 /Applications
. /Applications
文件夹现在包含第三方和用户安装的应用程序。
macOS Catalina 使用固件链接1 将来自 /System/Applications
的应用程序包含在 /Applications 文件夹中。
有点混乱,但最终结果是——你需要在 /System/Applications/Music.app
上调用 sdef
,而不是 /Applications/Music.app
,因为 /Applications/Music.app
只是一个固定链接。 sdef
,然而,由于我目前无法弄清楚的原因,似乎并没有遵循 firmlink。
命令sdef /Applications/Music.app | sdp -fh --basename Music
returns
couldn't get sdef for /Applications/Music.app (error -43)
在 macOS Catalina 中,但在 High Sierra 中按预期使用它(将 Music.app 更改为 iTunes.app)
如果您打开 Music.app 的内容,您会在资源中找到字典。 Catalina 在检索字典定义方面是否有任何变化?
在 Catalina 中,所有内置系统应用程序都在 /System/Applications
(一个新的只读目录)下,不像以前那样 /Applications
. /Applications
文件夹现在包含第三方和用户安装的应用程序。
macOS Catalina 使用固件链接1 将来自 /System/Applications
的应用程序包含在 /Applications 文件夹中。
有点混乱,但最终结果是——你需要在 /System/Applications/Music.app
上调用 sdef
,而不是 /Applications/Music.app
,因为 /Applications/Music.app
只是一个固定链接。 sdef
,然而,由于我目前无法弄清楚的原因,似乎并没有遵循 firmlink。