Creating shortcuts for different libraries

Hi,

I've got two libraries set up with iTunes 8 and switch between them with holding down Shift when opening. Is there any way of setting up desktop shortcuts which contain some sort of command line option to select the library and therefore remove the need of shift clicking and having to select the library file?

Windows Vista

Posted on May 9, 2009 6:29 AM

Reply
1 reply

May 9, 2009 7:02 AM in response to zizics

As far as I know, the only arguments iTunes.exe supports is a path to a file to start playing (music or video). You can't tell it via command-line switches to open a certain library.

Some people have reported that making a shortcut to the Library file (the .itl file) will work, but it never worked for me.

I do however have a helper program that will do what you want. You pass the path to your library folder as an argument, so you have to create shortcuts to my exe, with the library folder as the argument.

For example, if the path to one of your iTunes Library is C:library (i.e. inside C:library is the file "iTunes Library.itl", the "iTunes Music" folder, etc.), then the shortcut target would be
C:itunesopenlibrary.exe -b C:library
If the path contains spaces, you'll have to enclose it in quotation marks:

C:itunesopenlibrary.exe "C:Documents and SettingsTeridonMy DocumentsMy MusiciTunes"

The program works by editing the iTunes Prefs.xml directly, then starting iTunes. The -b switch (which is optional) tells the program to make a backup of the prefs file before editing it. Note, however, that it only makes one backup; the next time you run itunes openlibrary.exe with "-b", it will overwrite the last backup.

Download the program here:
http://www.pobox.com/~teridon/itunesscripts/index.html#itunesopenlibrary

The forum TOS requires me to say: "I may receive some form of compensation, financial or otherwise, from my recommendation or link" because I have a paypal donation link on my webpage, but the program is free (donation totally optional)

HTH,
Rob

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Creating shortcuts for different libraries

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.