问题描述
在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是一个程序 - 这就是为什么没有在OSX上专用的SDK - 操作系统就像是在iOS不是一个内在不可移动的部分。您可以通过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应用程序商店,只是GUI对AppleScript的顶部的应用程序。 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(或办法打他们)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!