Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Make iTunes create a Library entry containing everything Apps
In the old days of iTunes 6 and earlier, the iTunes Source pane would contain a Library playlist that listed all the audio and video in your iTunes library. iTunes 7 removed this, and segmented the library into various 'master' libraries -- Music, Movies, TV Shows, and so on. If you want to bring that overall Library playlist back, you can set two hidden preference keys in the Terminal:
$ defaults write com.apple.iTunes show-library-playlist -bool TRUE
$ defaults write com.apple.iTunes hide-library-playlist -bool FALSE
To be safe, you should quit iTunes before entering these commands in Terminal. Enter each line one at a time, followed by pressing the Return key (and don't enter the $). When you restart iTunes, you will have a Library playlist as the first entry in yourthe Library section of the iTunes sidebar. This playlist contains everything in your library. In fact, if you use iTunes' multiple library feature (hold Option while launching iTunes; read iTunes' help on mutliple libraries for more details), the name of this library playlist will be the name of your selected library, such as Main Library or Lossless Library, or whatever.

When the overall Library playlist is available in this fashion, you might want to be able to select it via AppleScript:
tell application "iTunes"
  set view of front browser window to library playlist 1
end tell
Just like the old days! To remove this new playlist, just reverse the values for the keys:
$ defaults write com.apple.iTunes show-library-playlist -bool FALSE
$ defaults write com.apple.iTunes hide-library-playlist -bool TRUE
Or, just delete the keys:
$ defaults delete com.apple.iTunes show-library-playlist
$ defaults delete com.apple.iTunes hide-library-playlist
Remember to quit iTunes before running these commands.
    •    
  • Currently 3.00 / 5
  You rated: 4 / 5 (10 votes cast)
 
[14,836 views]  

Make iTunes create a Library entry containing everything | 18 comments | Create New Account
Click here to return to the 'Make iTunes create a Library entry containing everything' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Make iTunes create a Library entry containing everything
Authored by: DougAdams on Jan 09, '09 07:40:31AM
Thanks to Rob for weblishing this. As an addenda, I've posted an app, Change Hidden iTunes Preferences, that will enable you to make these and other changes to iTunes here.

---
Doug's AppleScripts for iTunes
dougscripts.com

[ Reply to This | # ]

Make iTunes create a Library entry containing everything
Authored by: Anonymous on Jan 09, '09 03:18:41PM

I was puzzled by your inclusion of "Create file names with track number" in your new app until I looked through the preferences for Itunes 8 and found it had disappeared. Thanks Doug.



[ Reply to This | # ]
Make iTunes create a Library entry containing everything
Authored by: timcrawf on Jan 10, '09 02:29:50PM

This script did indeed create a Library/Library, but it did not hide the current Library items, Music, Movies, etc.
Is this something you can add? Or is something running improperly on my system?

10.5.6, iTunes 8.0.2



[ Reply to This | # ]
Make iTunes create a Library entry containing everything
Authored by: stevebr on Jan 09, '09 08:28:33AM

You can also create a simple one-condition smart playlist:

Kind is not [blank]

Where "[blank]" is just the empty field. Instead of "Kind," I suppose you could use any info that always some data, but Kind may be the only one.



[ Reply to This | # ]
Make iTunes create a Library entry containing everything
Authored by: DougAdams on Jan 09, '09 09:21:17AM

True, a Smart Playlist works; until I discovered this, I used that technique to create an "Everything" SP. However, the advantages of this is that the actual name of the Library will be used, and, because its not an SP, it doesn't bog down iTunes trying to update, since the "library playlist" is always there, just not visible by default. It also is sensibly located at the top of the LIBRARY list, which I like.

---
Doug's AppleScripts for iTunes
dougscripts.com



[ Reply to This | # ]
Make iTunes create a Library entry containing everything
Authored by: stevebr on Jan 09, '09 11:31:21AM

Those are both valid points. I only use the one library on my main machine, so didn't consider them.

Just a little FYI: After testing your technique, deleting the keys didn't remove the Library list here as suggested in the hint. Only entering the opposite values for the keys did it.



[ Reply to This | # ]
Make iTunes create a Library entry containing everything
Authored by: timcrawf on Jan 09, '09 08:38:07AM

Thank you for this tip. since I use many different ways to gather my iTunes content, much ends up in the wrong place. This will help, put it all in one.
But a question, If I keep the separate Libraries, how can I move files between them? Some of my podcasts end up as music, and some as audiobooks.



[ Reply to This | # ]
Make iTunes create a Library entry containing everything
Authored by: DougAdams on Jan 09, '09 09:25:34AM

Put the tracks you want to copy from the first library into a playlist; export (File > Library > Export Playlist...) the playlist as XML (see the popup at the bottom of the dialog). Change to the second library. Import (File > Library > Import Playlist...) the XML you just created. Get rid of the playlist(s) if necessary, keeping the tracks.

---
Doug's AppleScripts for iTunes
dougscripts.com



[ Reply to This | # ]
Make iTunes create a Library entry containing everything
Authored by: timcrawf on Jan 10, '09 02:20:11PM

While your answer was good for my poorly worded question, it was not what I was looking for. What I would like is a way to move something from Library/Music to Library/Podcasts, or Library/Audiobooks



[ Reply to This | # ]
Make iTunes create a Library entry containing everything
Authored by: DougAdams on Jan 11, '09 12:41:37PM
OIC. Well, you can use the script Make Bookmarkable to change the selected tracks such that iTunes sees them as Audiobooks. Changing a track to podcast is rather difficult because iTunes maintains the RSS feed of the enclosures. You can try Re-Add Selected Tracks as Podcast, but it can't emulate an RSS feed that already exists, so you can't "re-subscribe" to the pseudo-feeds it creates.

---
Doug's AppleScripts for iTunes
dougscripts.com

[ Reply to This | # ]

Make iTunes create a Library entry containing everything
Authored by: timcrawf on Jan 12, '09 04:04:24AM

Thanks for the help



[ Reply to This | # ]
Make iTunes create a Library entry containing everything
Authored by: asmeurer on Jan 09, '09 09:45:12AM

How odd that you have to set two opposite keys to opposite things. Is there somehow a way to both hide and show the library playlist at the same time?



[ Reply to This | # ]
Make iTunes create a Library entry containing everything
Authored by: nekomatic on Jan 09, '09 03:18:16PM

Fantastic! A long time ago, in an iTunes version long since departed, I renamed my Library to something else, which I now regret. Unfortunately the renamed name pops up from time to time in other apps that read the iTunes database, and until now I never knew how to undo that change. By making the Library playlist visible I could rename it.

Incidentally, I only needed to set the 'show' default to True, I didn't need to change the 'hide' one.



[ Reply to This | # ]
Make iTunes create a Library entry containing everything
Authored by: asmeurer on Jan 13, '09 10:20:15AM

Wow! You're right. You can use this to rename your library.



[ Reply to This | # ]
Make iTunes create a Library entry containing everything
Authored by: scottrussell on Jan 10, '09 06:33:00AM

I love this tip! Now I'm wondering if there's a way to change the icon that shows up next to the Library name.

Right now, it's a musical note (just like the Music section's icon) so it doesn't really reflect the identity of the "Everything" library.



[ Reply to This | # ]
Make iTunes create a Library entry containing everything
Authored by: timcrawf on Jan 10, '09 02:21:47PM

One other question. Does this change it for the computer or just the current user?



[ Reply to This | # ]
Make iTunes create a Library entry containing everything
Authored by: asmeurer on Jan 13, '09 10:14:47AM

All iTunes preferences, including hidden ones, are user specific. Indeed, just about every application preference will be user specific. You'll notice that there aren't very many things in /Library/Preferences compared to ~/Library/Preferences. As far as I know, the defaults command only accesses user preferences, but I could be wrong on that one.



[ Reply to This | # ]
Make iTunes create a Library entry containing everything
Authored by: fritztoch on Sep 12, '09 01:26:18AM

The "defaults write" command still works for iTunes 9.



[ Reply to This | # ]