【问题标题】:Apple Music API - search songs and create playlist (MacOS)Apple Music API - 搜索歌曲并创建播放列表 (MacOS)
【发布时间】:2016-12-05 04:42:42
【问题描述】:

我正在寻找允许执行这些任务的 API

  • 在 Apple Music 中搜索歌曲
  • 创建播放列表
  • 将歌曲添加到播放列表

提前致谢。

【问题讨论】:

    标签: applescript itunes apple-music


    【解决方案1】:

    恐怕您现在要求做的事情不可能 从 iTunes 12.2 开始,我们只能搜索本地图书馆,而不是搜索整个 Apple Music API

    如果您的音乐库(本地或云端)中有想要播放的歌曲,您可以像这样搜索和播放歌曲:

    tell application "iTunes"
        set results to (every track whose name contains "Cumuli" and artist is "883")
        repeat with tune in results
            play tune
        end repeat
    end tell
    

    然后您可以将检索到的歌曲放入您想要的播放列表中,或者创建一个新的。看看this post for an example

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-02
      • 1970-01-01
      相关资源
      最近更新 更多