My python code,
import subprocess
command = ['osascript', '-e', 'tell application "iTunes" to name of current track as string']
p = subprocess.check_output(command)
When i run this i get a FileNotFound error, FileNotFoundError: [WinError 2] The system cannot find the file specified
.
I simply want it to return the name of the song that is currently playing, I have entered the full directory like this into it
command = ['osascript', '-e', 'tell application "C:\Program Files\iTunes\iTunes.exe" to name of current track as string']
however it still does not work.
Any tips or ideas on what might fix this would be very helpful!