Join the Stack Overflow Community
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up

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.

share|improve this question
up vote 2 down vote accepted

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
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.