So I am trying to either play a song in spotify and have it update the playcount of the song in iTunes. Or when I play a song in iTunes to have it play in Spotify. either is fine.
I have a vbs script that can increment the playcount of a song if it matches a folder path on iTunes. However I don't know how to get that path of Spotify. As far as the second option I have no clue how to do it.
Any ideas? Thanks
Spotify doesn't really provide access to the currently playing song, so what you're attempting to do is probably not really feasible. I would suggest maybe using something like Last.FM to save overall playcounts.
I wrote a script in Python which can update iTunes with playcounts from Last.FM http://deceptacle.com/2010/10/21/itunes-playcount-updater-using-last-fm/ which may be of some use
Related
I'd like to have an Applescript change the current Apple Music library automatically, instead of requiring me to hold down the option key when opening the app and manually select a new one. I found this answer which apparently works for iTunes, but the the name of the library location default seems to be different in Apple Music, and I can't figure out what it is. Any help is appreciated. Thanks!
Is there a way to import to apple music playlist without having the mp3 for the song, that apple music will automatically find and allow you to play?
OR
Is there anyway to add a playlist to iTunes Apple Music without having the song and getting iTunes Match to find the song from the importing?
Time flies! MusicKit from Apple might be your best bet.
https://developer.apple.com/musickit/
The iPhone has an app that can control iTunes on a Mac, for example play a song. Is it possible to get iTunes status in my program (Objective-c or other language like node.js)? When I play a song I want to receive an event, and when I add a song I want to know what file I added in my program. I tried to find documentation about this but found no result - is there documentation about how to do this?
Absolutely, this can be done with Applescript. iTunes is fully scriptable. You can control it, get information about the currently playing media, etc.
http://dougscripts.com/itunes/itinfo/info01.php
I'm wondering how to get the iTunes library into a mac application using Cocoa? I want the user to be able to choose a song from the iTunes library and then play that song. How would I do this?
You can use Karelia Software's iMedia Browser framework, which lets the user choose all sorts of things from the user's iLife libraries.
To play the song, you'll probably use NSSound.
I am creating an application using AppleScript and I want to display a list of the next ten (including the current) songs iTunes will play from iTunes DJ. I can't find it anywhere on the internet, Google, whatever so I asked it here. Can anyone help me? Thanks
The following AppleScript will return the names of the songs in the iTunes DJ playlist:
tell application "iTunes"
get name of every track of playlist "iTunes DJ"
end tell
The song names are returned in play order and will also include recently played songs (this can be configured in the iTunes DJ settings).