从 OS X 上的 iTunes 获取曲目和文件名列表(或播放它们的方式) [英] Get list of tracks and filenames (or a way to play them) from iTunes on OS X

查看:21
本文介绍了从 OS X 上的 iTunes 获取曲目和文件名列表(或播放它们的方式)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 OS X 上,有没有办法向 iTunes 询问它拥有的所有曲目,以及一些元数据(我最感兴趣的是播放次数)和曲目的文件名(或者,只是一种方式玩它们也不错).

On OS X, is there a way to ask iTunes for all the tracks it has, with some metadata (I'm most interested in the number of plays), and the filenames of the tracks (alternatively, simply a way to play them would be fine as well).

我知道我可能可以通过阅读 iTunes 数据库来破解一些东西,但我正在寻找一种解决方案,它不被认为是被 Mac App Store 接受的禁区.

I know I could probably hack something up reading the iTunes database, but I'm looking for a solution that is not considered off-limits for acceptance into the Mac App Store.

这可能吗?

推荐答案

iTunes 是一个程序 - 不像在 iOS 上那样是操作系统固有的不可移除的部分 - 这就是为什么 OSX 上没有专用的 SDK.您可以通过 AppleScript 通过 iTunes 访问.

iTunes is a program - not an intrinsic unremovable part of the operating system like it is on iOS - which is why there is not a dedicated SDK on OSX. You can access via iTunes via AppleScript.

Mac 应用商店中有一些应用程序只是基于 AppleScript 的 GUI.http://dougscripts.com/itunes/category/mac-app-store/

There are applications on the Mac app store that are just GUI's on top of AppleScript. http://dougscripts.com/itunes/category/mac-app-store/

这篇关于从 OS X 上的 iTunes 获取曲目和文件名列表(或播放它们的方式)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆