Two or three days ago Apple introduced a new updated for iTunes: a new miniplayer, a new player time bar, etc... And I thought: "sweet!". But I found a new issue with it, and here's my problem:
A long time ago, I created the iTunes.h
file by typing the following line in the console app
sdef /Applications/iTunes.app | sdp -fh --basename "iTunes"
That's the file I've been using to retrieve data from iTunes using ScriptingBridge
. But now, with the new update, calling [iTunes playerPosition]
doesn't work properly any more with the newest version, (it still works perfectly with the older version). Now, the NSInteger
that I get by calling playerPosition
is always 3 (seconds, 0:03) even if the player position is not that.
So I thought, maybe If I generate the iTunes.h
file again it will work. And yes, I was right! It works nice but now [iTunes playerPosition]
is broken on the older versions and the output is always 0 (seconds, 0:00).
Is there any way to work around this so it works on both older and newer versions?
Thank you!
Note: if you have your iTunes updated, try downloading Significator for iTunes on the Mac App Store to see what I'm talking about.