An apple script that writes iTunes song and artist information to a text file for use with the "text-from-file" feature of OBS streaming software. TuneOut and OBS, used together, will display iTunes now-playing information during a stream.
First Time Running:
-
Download TuneOut.scpt from my github repo
-
Run the script and press cancel when asking where "TuneOut" application is (will only happen on first run) - AppleScript Editor will open.
-
Go to File > Export - File Format: Application > Save
Using:
-
Open iTunes
-
Play a song.
-
Run the TuneOut applescript from applescrip editor or run the application you made when you exported.
-
Create or Select a text file to use.
-
Create a text source in OBS and select Text-From-File
-
Browse to the file you created from iTunes in step 4.
-
Format the text as you like!
WARNING - Don't select the wrong file in step 4. This script clears the file contents and rewrites them.
To change "refresh rate" you can change the delay in the script and reexport the app.
Thanks to @NateSandstorm for pointing this out on the OBS Forums: Helpful tip: goto File > Export and select the Application file format. This way you don't need to run it from Apple Script every time. (Just a convenience feature anyone might want to use.)
It'll ask you to select a text file, but the first time you run it, just type in a name that doesn't already exist, and just use that same file every time. You can then add that text file to OBS and, when iTunes (or any other Music player - just change where it says "iTunes" to the name of the player, like "Spotify") is playing music the file will have the text in it. Also make sure iTunes is running.