【发布时间】:2016-10-30 06:30:56
【问题描述】:
有没有可以制作的苹果脚本
选中“与其他应用程序共享 iTunes Library XML”。来自
iTunes 优先 高级选项卡... 我想阅读 iTunes 媒体库 .xml,但在最新的 iTunes 中,默认情况下没有创建 xml, 所以我希望这个 xml 由我的应用程序通过苹果脚本创建。 iTunes12.4
【问题讨论】:
标签: macos applescript itunes
有没有可以制作的苹果脚本
选中“与其他应用程序共享 iTunes Library XML”。来自
iTunes 优先 高级选项卡... 我想阅读 iTunes 媒体库 .xml,但在最新的 iTunes 中,默认情况下没有创建 xml, 所以我希望这个 xml 由我的应用程序通过苹果脚本创建。 iTunes12.4
【问题讨论】:
标签: macos applescript itunes
试试这个(在 El Capitan 上创建)
activate application "iTunes"
tell application "System Events"
tell process "iTunes"
keystroke "," using command down
repeat until exists toolbar 1 of window 1
delay 0.2
end repeat
tell window 1
if title does not contain "Advanced" then
click button "Advanced" of toolbar 1
repeat until its title starts with "Advanced"
delay 0.2
end repeat
end if
tell checkbox "Share iTunes Library XML with other applications" of group 1
if value is not 1 then
click it
end if
end tell
click button "OK"
end tell
end tell
end tell
【讨论】: