More iTunes Math
markmcb writes "OmniNerd once again digs into the math behind iTunes. The 5-star ratings in iTunes are actually stored in a variable allowing values from 0 to 100, with 20 = 1-star, 40 = 2-star, etc. Known to few, if you set a rating to 30 (manually), it will show up as 1 1/2 stars in the program's GUI. Matt Schinckel provides interesting statistical evidence showing that not only do non-whole, non-half values (e.g., 47) not increase the amount a song will play, but neither do the half-star ratings (with the exception of .5 star)."
AppleScript really isn't a particularly great language. My understanding is that any OSA language can use AppleEvents, so all you need is something like this to talk to applications in something you are more used to:
0 1-August/004064.html
http://mail.python.org/pipermail/pythonmac-sig/20
-- If it aint broke, fix it till it is. --
Yes, it's interesting. If you find such topics boring, then perhaps you shouldn't be reading Slashdot. I'm sure you'll find reading material more entertaining and suitable for lower intelligence level at Disney.com.
Many people who read this site care about issues like this. We find it interesting to experiment with software systems, especially those which we do not have direct access to the source code of. It's fun to see how a consumer-grade application reacts to unexpected data, for instance.
He could have decompiled the application. But doing so would likely have been in violation of the licensing agreement he agreed to before using said software. You may question the legality of such agreements, but he may not have wanted to take the risk of publishing his findings. Litigation is expensive, after all.
Not only that, but it's quite difficult to decompile a program written in C, C++ or Objective-C. That's especially true when you're dealing with an optimized program. It often isn't obvious what a particular chunk of assembly code is doing, and thus is basically useless for such analysis.
Cyric Zndovzny at your service.
What sound do people on rollercoasters make? Hint: it's not Xbox 360.
Carbon applications are usually written in Objective C.
No they aren't. I'm a professional programmer for a Mac (and PC) program using the Carbon interface for Macs. As Wikipedia says, "Carbon is more versatile in that it may be accessed using C, C++, Pascal, Ada, or any other language with suitable interface headers, whereas Cocoa exclusively uses Objective C and Java." Most cross-platform apps use Carbon because Objective-C isn't widely used on PCs.
Ooh, a sarcasm detector. Oh, that's a real useful invention.
Brandon answered the question in the article comments, "Assuming no time between tracks, the test ran for about 15.41 minutes (924.81 seconds)." (See http://www.omninerd.com/2006/02/11/news/530)
You can do half star ratings in iTunes for Windows as well. Works exactly the same way.
g rammery/
Scripts to do it can be found here: http://ottodestruct.com/blog/category/geekery/pro
- Give a man a fire and he's warm for a day, but set him on fire and he's warm for the rest of his life.
Uhh, did you even go to that link? It runs on linux and OS X.