What Scripting Targets exist for iTunes?

北战南征 提交于 2020-01-02 11:19:27

问题


Apple has a nice documented Technical Q&A page for implementing scripting targets for Mail.app. However, even though scripting targets also work for iTunes, there isn't a comprehensive list of available scripting targets.

Does anybody know how to find this list? The WWDC 2012 session on Secure Automation mentions a few, but it isn't comprehensive.


回答1:


In OS X 10.9 Mavericks, you can view the com.apple.iTunes.sdef file at /System/Library/Frameworks/Foundation.framework/Versions/Current/Resources. This lists the scripting target access group associated with each AppleScript command.

There are six access groups:

com.apple.iTunes.device
com.apple.iTunes.library.read
com.apple.iTunes.library.read-write
com.apple.iTunes.playback
com.apple.iTunes.podcast
com.apple.iTunes.user-interface


来源:https://stackoverflow.com/questions/21345542/what-scripting-targets-exist-for-itunes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!