我如何使用com.itunes.plist查找iTunes媒体文件夹位置 [英] How i locate itunes media folder location using com.itunes.plist

查看:110
本文介绍了我如何使用com.itunes.plist查找iTunes媒体文件夹位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要通过com.itunes.plist访问iTunes-Prferencces-Advanced中设置的iTunes的媒体文件夹位置.

I need to access the media folder location of itunes thats set in iTunes-Prferencces-Advanced through com.itunes.plist.

请帮助我

谢谢

推荐答案

媒体文件夹的位置存储在键"alis:11345:Music Folder Location"下.该键下存储的值是一个数据别名,其中包含AliasHandle的内容.对于可可包装器处理别名数据,请看一下开放源 BDAlias 类.这样一来,您就可以从数据Blob中创建一个别名,然后解析该别名以找到其引用的基础路径.

The location of the media folder is stored under the key "alis:11345:Music Folder Location". The value stored under that key is a data blob containing the contents of an AliasHandle. For a Cocoa wrapper to deal with alias data, take a look at the open source BDAlias class. That will let you create an alias from the data blob, and then resolve the alias to find the underlying path to which it refers.

这篇关于我如何使用com.itunes.plist查找iTunes媒体文件夹位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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