【问题标题】:Apple script to Check Share iTunes Library XML with other applications [closed]苹果脚本检查与其他应用程序共享 iTunes 库 XML [关闭]
【发布时间】:2016-10-30 06:30:56
【问题描述】:

有没有可以制作的苹果脚本

选中“与其他应用程序共享 iTunes Library XML”。来自

iTunes 优先 高级选项卡... 我想阅读 iTunes 媒体库 .xml,但在最新的 iTunes 中,默认情况下没有创建 xml, 所以我希望这个 xml 由我的应用程序通过苹果脚本创建。 iTunes12.4

【问题讨论】:

标签: macos applescript itunes


【解决方案1】:

试试这个(在 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

【讨论】:

  • 感谢您的回复。我在 windows 上工作,在这里我需要 .js 文件,它适用于 mac
猜你喜欢
  • 2017-03-20
  • 1970-01-01
  • 2017-03-19
  • 1970-01-01
  • 2016-05-29
  • 1970-01-01
  • 2014-12-19
  • 1970-01-01
  • 2011-08-27
相关资源
最近更新 更多