Reputation: 83
I'm trying to use scripting bridge to access album artwork with iTunes, but when I use the method
[iTunesApplication currentTrack];
I get an error saying that there is no know class method current track
It seems to work in other people's code, so what am I doing wrong? I don't think I'm trying to call it as a class method.
Upvotes: 0
Views: 124
Reputation: 11
iTunesApplication *iTunes = [SBApplication applicationWithBundleIdentifier:@"com.apple.iTunes"];
[iTunes currentTrack];
should work.
Upvotes: 1