AppleScript for opening different iTunes libraries

I want an application that will, at the press of a button open one of my two iTunes libraries, as I have to switch between them with frequency. Unfortunatly, I can't figure out how to tell iTunes to open a specific library. I have what I tried pasted below. No mater which button I press, (except for "cancel" of course!) it just opens the last used library. What am I supposed to do?
Thanks.
tell application "iTunes" to quit
display dialog "Choose an iTunes Library to open" buttons {"Normal iTunes library", "mp3 library", "cancel"} default button 1
copy the result as list to {buttonpressed}
if the buttonpressed is "Normal iTunes library" then
tell application "Finder" to open POSIX file "/Users/benlevy/music/iTunes/iTunes Library"
end if
if the buttonpressed is "mp3 library" then
tell application "Finder" to open POSIX file "/Users/benlevy/music/mp3 iTunes library/iTunes Library"
end if
if the buttonpressed is "cancel" then cancel
end

I know those things! I do switch manually all the time. I want this program to eliminate the hassle.
The reason for having two libraries is because I have an mp3 player that uses the iTunes library file structure to copy music (including the artists, albums, genres, etc) onto its hard disk. Unfortunately, it is small (2Gb) and it only handles mp3s. Luckily, I have been able to create a work flow that saves all the high quality aac files from my regular itunes library, and copies highly compressed mp3 versions of them to my "mp3 itunes library." I need to open the mp3 library to sync my mp3 player, but to listen to music I use the normal library. I don't want to deal with two copies of each song in 1 library!

Similar Messages

  • Is there a way to open automatically open different iTunes libraries in different networks?

    I know how to select which iTunes library to open upon launch -- manually. But I'd like iTunes to automatically open a different library, depending on where I am:
    1) open the library on my external drive when I'm on my home network, but
    2) open the library on my Macbook Pro when I'm on any other network.
    Can you think of a way to automate this?

    If you setup the PDF with appropriate chapter labels for the pages - yes.

  • How do you combine 3 different itunes libraries from 3 different computers to one computer?

    How do you combine 3 different itunes libraries from 3 different computers to 1 computer?
    Can you keep it from creating duplicates?  These libraries have some duplicates.
    How do you deal with duplicates? 
    I'm talking 50GB. 
    All computers are authorized. 
    THANKS for any suggestions.

    You can't.
    If accounts could be merged, then everybody could merge their accounts with everybody and there would be no need for anyone to buy anything.

  • Multiple macs & different iTunes libraries with iCloud

    I have multiple macs with different iTunes libraries, and I don't want to blend them.  What do I need to know/do before setting up and using iCloud?  I don't mind choosing one library for use with iCloud, but I don't want to disturb the other libraries - although I do want to continue to sync calendars, address book, etc. on each computer.  Can I have more than one computer having the same iTunes library?
    Thanks for any feedback!
       Keith

    Until I tunes match comes out it does not matter.  I cloud is for e mail, contacts, and calendars.  Your I cloud ID MUST be an @me.com ID.

  • Condensing Different iTunes Libraries

    Hi All,
    I am condensing two different iTunes libraries by importing my music library from my G5 to my iMac, which will be my central music hub. Everything imported successfully, plus I also figured out how to import my playlists from my G5 music library using the XML file, so it's all good. However, the songs from my G5 music library no longer have a play count associated to them.
    My question now is: Is it possible to include the play count for each song from my G5 library? I know this isn't a huge issue, but I like knowing how often I've listened to a particular song. Plus, the songs that were in my top 25 most played playlist on my G5 are not included now because they have no play count.
    Any help/insight on this issue is greatly appreciated! Thank you all!
    Kevin

    "Should iTunes be separately D/L'ed and installed on each account?"
    No. You can create different users or put all the music together in one library and sync by playlists.
    "Can you Home Share from one library to another on the same machine?"
    No. http://support.apple.com/kb/HT1203

  • Synching to Two Different iTunes Libraries

    What are the risks and other considerations in using two different iTunes libraries to send photos to an iPad?
    My iPad is synched to my home iMac. I have added photos to the iPad via the iTunes. After some experimentation, I have discovered that if I do not use iPhoto, I can only have photos on my iPad that exist in a singe folder on my iMac. While that is a painful limitation, I can live with it.
    Ok, so now suppose I have taken my MacBookAir on vacation with my iPad. (Assume a foreign country with no 3G connectivity or hot spot.) I have taken a bunch of photos and uploaded them from my camera to the MBA, edited them in Photoshop and now want to share the edited photos with friends over dinner.
    After overthinking the problem for longer than I care to admit, my "well-duh" moment arrived when I realized that all I have to do is to connect my iPad to the MBA via cable, go to the photos section of iTunes and select my newly edited photos.
    I do not have the MBA synched to my home library.
    What happens to my existing photos when I transfer my new photos? Gone, is my guess. What about everything else on the iPad that I have synched to the home computer, like music library? Also gone?
    In short, is there a way to transfer these photos from my MBA to my iPad without wiping out the rest of what is stored?
    I've wallowed around some and seen suggestions like Drop Box, Transfer etc. I'm not sure, but these probably require a wireless connection, and I won't have one. I do have the camera upload kit, but I have not experimented with whether I can transfer edited photos from my MBA onto an SD card for transfer to the iPad (i.e., I do not know whether the files have to be created by a camera, or whether edited photos will work).
    Any strategies out there for doing simply what I am trying to do would be appreciated.

    You're right; it's not the multiple folders problem I was unhappy about. It was having to put everything in the same parent folder and not being able to select individual photos or folders from other parents that was modestly irritating. Oh well. Maybe iOS version 5 . . . .
    As far as photo transfer goes, the iTunes synch may be my only way. I guess I could set up a parent folder on my MBA called "iPad Transfer" and put everything I want--new and old--into it so that every time I synch I get everything.
    I'm concerned, however, that the camera connection kit I bought may not be very useful to me. My digital camera is compact flash, so to use the card reader I will have to go out and buy an SD card at the very least. But since I have no device I know of to format the card for a DCIM folder, I think I'm out of luck. There isn't any way to format a new card with a DCIM folder if you don't have an SD camera, is there?
    The only way I can think of to use the kit is to transfer shots directly from my camera. These would be unedited, and I'll have to transfer all of them. I'm pretty sure that it is not advisable to transfer edited photos back to a compact flash card, since the camera probably won't read them and will probably screw up the card formatting.
    I did try to connect my Compact Flash card via my (non-powered) Lexar card reader and the USB connector that came with the camera connection kit, but no luck. The iPad says it won't work because it uses too much power.
    Any other workarounds that you know of?

  • Two different itunes libraries...

    i got two ipod nano, is it possible to have two different itunes libraries, in order to put different songs in different ipods...or is it possible to have two different itunes, each for an ipod ??
    p.s. its all on one computer, dont have a second one...

    These links should help:
    Natalie Beresford: Multiple iPods/iTunes Installations
    How to use multiple iPods with one computer
    How to share music between different accounts on a single computer

  • T will it have 2 different itune libraries? Or do we have to share 1?

    I am trying to back up a 2 iphone onto one computer. But will it have 2 different itune libraries? Or do we have to share 1?

    This is up to you and not determined by the iPhone.
    You can sync each iPhone with the same iTunes library and each iPhone has its own sync preferences with iTunes, or you can have more than one iTunes library with iTunes on your computer. This will require constantly logging in and and out of each iTunes library on your computer with iTunes depending on the iPhone being synced with iTunes.

  • How do i purchase the same song for a different itunes library on my computer?

    How do I purchase the same song for a different itunes library on the same computer?

    and then they will be sorted in the correct order.

  • I have 3 computers with 3 different iTunes libraries can I download all to itunes match and have one library?

    I have 3 computers with 3 different iTunes libraries, can i set up iTunes Match download each library and have all of my music in one place in the cloud?

    Yes.  By enabling iTunes Match on each computer, each library will be scanned and the Songs will be Matched or Uploaded to the cloud.
    Do look carefully at the User Tips area of this forum to help you with the neatest route to success.

  • Apple tv and syncing two different iTunes libraries

    Is ist possible to sync - or better stream - contetn from two different itunes libraries.
    I have an iMac sitting in my office and a amc mini in the livingroom (which was supposed to do the atv-job but failed due to tremendous fan activity)
    i would like to connect the appletv to both itunes libraries, because their contents are different.
    Is this possible?

    You can only sync from one library but it also streams content that isn;t synced.
    You can stream from up to four other libraries as well (or is it five? I can't work out if the one yuo sync from counts as one of the extra streaming libraries or not).
    AC

  • Create shortcuts for different iTunes libraries?

    My wife and I share a single Windows 7 User account but have separate iTunes libraries.  It can be a hassle holding the shift button to bring up the option to switch between the libraries. Is there was a way to create a shortcut for each so I can just click on one to open my library and she can click on another for hers? Is that possible?

    "Should iTunes be separately D/L'ed and installed on each account?"
    No. You can create different users or put all the music together in one library and sync by playlists.
    "Can you Home Share from one library to another on the same machine?"
    No. http://support.apple.com/kb/HT1203

  • Opening Multiple iTunes Libraries at Once

    I was wondering if there was a way to have multiple iTunes Libraries open simultaneously? For example, if I wanted to view two websites at the same time I would just open a new window, thus having the two sites side-by-side. Is there a way to do the same thing with my iTunes Library, either thru Apple or after market, so that I can create and compare different libraries without having to close out of one before opening another?
    Thanks for any help, and sorry if this has been asked before...

    Hi, welcome to Apple Discussions.
    No, iTunes doesn't have a multiple document interface for the library database. You can however get it to open a separate window on a playlist so you can compare one playlist to another. If you want to view separate libraries at the same time host one on a virtual machine, a second physical machine with remote access or put two machines side-by-side.
    tt2

  • Two different itunes libraries on same computer

    I hope someone can help me! How do i set up two different libraries on the same computer for two different ipods? My ipod is on a computer i no longer have and I'm trying to put it on a computer that has a different ipod on it. My ipod appears in Windows as (H) and not in itunes.
    I've tried all the tips I found already with no luck!

    if the computer cannot be turned on, one option would be to remove the hard drive and put it in an external enclosure that can be connected to the working computer.

  • 3 different iTunes libraries on one Apple TV

    Is there any way possible that I can be signed in to ONE iTunes store account on my 2nd generation Apple TV to rent movies and tv shows, then see my family's mac's and pc's? I have a mac. Then there are two other computers in my house all with different iTunes accounts. I was looking at other posts and I really cannot understand this setup. My apple TV is only showing one library at a time unless I sign someone else in my family out, then type all my credentials in. And back and forth seeing all my mac's and pc's with my iTunes account. This is really tedious. How can I see everyone's computer's all under the "computer" tab in the Atv?

    Both libraries would need to have been setup to use home sharing with the same Apple ID in order for that to work.

Maybe you are looking for

  • Getting Row and Column Identifiers to Show

    Does anyone know how to get the row (A,B,C...) and column (1,2,3...) identifiers to show in a Numbers spreadsheet? These are visible on the Mac version but are not visible on iPad version. It seems to me to be a pretty basic spreadsheet feature to ea

  • Accessing Oracle 11i  apps through Pocket PC

    Normally for any windows client to connect to the Oracle Server we add a entry into the client host file i.e. windows\system32\drivers\etc\host . Once we add the entry we are able to access the Oracle Application. From a Pocket PC 2002 how do I acces

  • Cross tab column headers display on all pages

    I made a Crystal Report with a cross tab which displays all details. In the cross tab I have 6 columns with details about the data displayed in the last 2 columns. The headers of these columns are only displayed on the first page but not on other pag

  • Why is this new Safari so crap????

    it takes forever to load between pages and keeps failing. i have not got time to wait for it!!!!!!!

  • Extension is not showing up

    I'm trying to get my extension to show up in Photoshop CS 5.1 on Mac and I haven't been able to do it. I've followed the instructions in Using the Adobe Creative Suite 6 SDK. I've set the PlayerDebugMode to 1 in preferences: Macintosh HD/Users/me/Lib