I felt like I had this somewhat under control, but I have tried everything (from the forum, to trial and error, and google) and cannot get this particular one right. I would appreciate you help!
The usual " to get this " is not working in Osascript.
This is the script I need:
tell application "System Events"
set MyList to (name of every process)
if (MyList contains "Spotify") is true then
tell application "Spotify" to open location "spotify:track:THIS-NEED-TO-DYNAMIC"
I'm fine if I hard code everything, but I need the part that says "THIS-NEED-TO-DYNAMIC" to change as needed. Sprintf is not being my friend (and all other ways).
This feels like the closest: