0

I would like to get currently playing song's name (and artist if possible) on Itunes. I'm using Itunes Version 12.10.3.1 on Windows 10. I only want to get both strings in Javascript and get them into variables.

It seems that Applescript could be a way to do it but i can't find any interface to execute applescript inside JS... Could somebody help ?

Rigos07
  • 21
  • 2
  • 1
    is it even possible? iTunes is a standalone app and won't expose any data outside due to privacy. How would JS running else where be able to get iTunes's application state? – nonopolarity Jan 12 '20 at 00:12
  • Well i saw topics where you could get it via applescript, but i don't think it's working anymore. However it should still be possible i think – Rigos07 Jan 12 '20 at 14:53
  • so are you look for solution using JavaScript as stated, or AppleScript? – nonopolarity Jan 12 '20 at 18:32
  • I'd like to use Javascript, and even though some people were using applsescript via node modules, they are now out of date today... Actually if there is still a way to execute applescript in JS i could take this solution as well. All I need is a way to get the song name as a string in my JS script. – Rigos07 Jan 12 '20 at 18:56
  • AppleScript might be possible, as it provides interface into apps on the Mac... so you might have to use AppleScript alone or together with JS – nonopolarity Jan 12 '20 at 19:07
  • Yeah, but i was wondering if it also works on Windows 10... I don't really know how applescript work though I edited my post about it – Rigos07 Jan 14 '20 at 16:40

0 Answers0