开发者

Applescript iTunes dictionary explanations

开发者 https://www.devze.com 2022-12-29 05:19 出处:网络
I am wonder开发者_JAVA百科ing what the different color schemes mean in the following: What does the blue C tag mean? and the purple one?

I am wonder开发者_JAVA百科ing what the different color schemes mean in the following:

Applescript iTunes dictionary explanations

What does the blue C tag mean? and the purple one?

Disclaimer: absolute OSX newbie here... please be gentle ;-)


The blue "C" means "command". You use these like so:

tell application "iTunes" to <command> --search, stop, update, eject, etc

The purple C means "class". These represent different types of data that can be extract from iTunes, and selecting a single class shows what properties it has (the orange E). Classes (or instances of classes, really) are what's returned to you after you request information, like so:

tell application "iTunes"
   set currentSong to the current song
end tell

After running this, currentSong will contain an instance of the Song class, which you can then ask for information, like who its artist is, etc.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号