Automation: open in itunes, one by one

I've never used automator before, but today I got an idea for a workflow that might be useful to me.
I sort most of my itunes music by date added, and I like to see the tracks in the order they are on the album. But when I import an album from a folder in the finder, they tend to come in out of order (sometimes shortest first or random). To avoid this, I have to import the files one by one, waiting for itunes to process the track before clicking on the next one.
I don't know if automator can help, or if there is some other script I can run, but I really don't know the first thing about how to do it.

Sure. I suppose the easiest way would be if you do everything with applescript itself. That way if there is an error it is easier to find out what is going on. If you are on Leopard Open /Applications/AppleScript/Script Editor.app (I don't remember if this was the exact location. Spotlight might help.)
Now type this script in there:
-- Ask for files to add to iTunes. This will show an open file dialog box to choose files from
set allSongs to choose file with multiple selections allowed without invisibles
tell application "iTunes"
-- iterate over the songs. Song 1, then song 2…
repeat with thisSong in allSongs as list
set thisSong to thisSong as alias
-- Add this song to the iTunes Library
add (thisSong as alias) to library playlist 1
end repeat
end tell
Try this with two files first to see if it adds the songs one by one or together. I think that from Leopard onwards the order in which you choose the files is also important and the files will be 'used' in that exact order.
Message was edited by: hungryjoe
Corrected a mistake

Similar Messages

  • HT3702 I'm trying to open an iTunes account and was asked to provide one of each:credit card details or gift card details.i provided a gift card details and yet I'm being asked to contact the support team!!! Pls can someone help me out on this..thanx. Bre

    I'm trying to open an iTunes account and was asked to provide one of each:credit card details or gift card details.i provided a gift card details and yet I'm being asked to contact the support team!!! Pls can someone help me out on this as I cant enjoy my new iPad 3 without buying apps

    Brenda, the easiest way to contact the support team is thru the iTunes Customer Service website:
    http://www.apple.com/support/itunes/contact/

  • HT1451 If I have two iTunes libraries on one computer, how do I know which one is opening when I click on the iTunes icon on the desktop?

    If I have two or more iTunes Libraries on one computer, how do I know which one is opening when I click on the iTunes icon on my desktop?

    You cannot.
    When you sync to a new library, it will erase the current content.
    Use your backup copy of the old computer to copy everything to the new one.

  • I opened an itunes account then forgot my password. I opened a new account now I would like to combine my two accounts into one but I still can't remember my password and now I have a new email account. Help!

    I opened an itunes account then forgot my password. I opened a new account now I would like to combine my two accounts into one but I still can't remember my password and now I have a new email account. Help!

    You can't combine accounts but help here Apple ID FAQ's for resetting your Apple ID password.

  • When i first opened my itunes acct. i was sharing with my daughter. she has gotten her own acct. now and we cannot remember the password to the old one. it will not let me sign in with my birth date and my email address is no longer the one on file help

    When I first opened my itunes acct. i was sharing with my daughter. some time ago she got her own acct. i thought i should get my own too. so for the last several years i used my new acct. i reciently wanted to add some new cds to my ipod and it said that some of the songs that i purchased were no longer there. and were associated with a different acct. so i tried to log in to my old acct. but it asked for my birthday and the one i entered didnt match the records, and i no longer have the email address from the old acct to email me so i can reset the password. i have well over 100 songs that i purchased back then and i cant believe i cant get them back!! someone please help me. i love my music and i really want my other songs back.

    Contact AppleCare at 800.694.7466, and ask for account security.  You will need to answer some questions to verify your identity, AND you will need access to a computer to generate a temporary support pin.
    HTH

  • Itunes does not open. When I click on itunes it jumps ones and does not open in macbookpro

    itunes does not open. When I click on itunes it jumps ones and does not open in macbookpro.NEED AN ANSWER NOW!!!

    Hey sebasac,
    Thanks for the question. I understand you are experiencing issues with iTunes on a Mac. Let’s see if we can isolate this issue by starting iTunes in safe mode:
    iTunes: Troubleshooting issues with third-party iTunes plug-ins
    http://support.apple.com/kb/TS3430
    There are several ways in which an add-on can cause iTunes to act erratically, such as those listed below:
    - Loss of iTunes functionality, such as the Visualizer.
    - Distortion or irregularity in the iTunes interface.
    - Slow performance.
    - iTunes won't open or quits unexpectedly.
    - You see an alert while syncing stating "... cannot be synced. A duplicate file name was specified."
    If you notice any of the above symptoms or other unusual behavior, you can disable any plug-ins not manufactured by Apple by opening iTunes in Safe Mode. This is done by holding down the Option and Command keys (on Mac OS X) or holding down the Shift and Control keys (on Windows) while opening iTunes. If performed correctly, you should see the following dialog before iTunes finishes starting up:
    "iTunes is running in Safe Mode. Visual plug-ins you have installed have been temporarily disabled."
    If the above does not resolve your issue, I’d like to isolate further by testing in another user account:
    Isolating an issue by using another user account
    http://support.apple.com/kb/TS4053
    Symptoms
    When isolating issues and/or troubleshooting software issues in OS X, you might want to use a different user account. Learn how to use this technique to narrow down the cause of an issue.
    Resolution
    The issue at hand may simply be caused by a bad preference setting or user-specific data file. With proper isolation, you can avoid time-consuming and inappropriate troubleshooting methods.
    Thanks,
    Matt M.

  • When I open my itunes it shows me two sides one is iTunesU and the other side is Podcasts and I can't connect with iTunes.How can I fix it

    When I open my itunes it shows me two sides one is iTunesU and the other side is Podcasts and I can't connect with iTunes.How can I fix it?

    Hi emzigal,
    Thank you for using Apple Support Communities. 
    Take a look at the following article to make sure that you are not missing any steps necessary for downloading past purchases. 
    Download past purchases - Apple Support
    Cheers,
    Jeff D. 

  • Everytime I open up itunes I can listen to my music, but one I connect it to my IPod, it says "ITunes has stopped working" and then it shuts down. How do I fix this problem?

    Everytime I open up Itunes I can listen to my music, but once I connect it to my IPod, it says "ITunes has stopped working" and then ITunes ***** down. How do I fix this problem?

    Hi The Funkster,
    The resource below will provide some initial troubleshooting for the issue you are having uploading songs and artwork to iTunes Match.
     How to troubleshoot iTunes Match - Apple Support
    http://support.apple.com/en-us/TS4054
    I hope this information helps ....
    - Judy

  • ITunes will not open in Windows 7 for one User. All I get is the Licence Agreement pane and when I click YES nothing further happens. I have set up a second user and iTunes opens without problem in that User window.

    Clearly something is blocking the main user(administrator) from opening the iTunes programme and I cannot find a solution.

    Many thanks for your reply. Yes I carried out the suggested procedure in safe mode , which did not resolve the issue and so this is what led me to set up a second User account. iTunes opened without problem in this second account and so I looked at the User-specific troubleshooting but I just could not locate the iTunes Preference files no matter how much searching I did.
    I also tried uninstalling and re-installing but the problem persists. Would be very grateful for any further advice.
    ollie66     Gorran Haven, Cornwall, England.

  • We have multiple devices in our family.  On each iPad/iPhone each user has their own apple id for iMessage, Facetime and icloud, but we all sign in to the same apple id for itunes.  When one of my kids comments on my shared photostream, it shows my name??

    We have multiple devices in our family.  On each iPad/iPhone each user has their own apple id for iMessage, Facetime and icloud, but we all sign in to the same apple id for itunes.  When one of my kids comments on my shared photostream, it shows my name and not theirs as the commenter.  How do I fix that?

    CREATE A NEW USER
    Go to System Preferences --> Create a New User in Users & Groups
    Decide on whether to setup as Admin or Standard User.
    Switch to the New User by logging out under the Apple in the Menu Bar or use Fast User Switching
    Fast User Switching allows other users to leave current applications and windows open. Depending on RAM, you might need to log out rather than use FUS.

  • How do I move my itunes account from one country to another?

    How do I move my itunes account from one country to another?  I set up my itunes account in the United States and now I live in England.  I would like to transfer my purchases from my US account to my British account and then download them onto my new ipod.  I have uninstalled and reinstalled Itunes and I have updated my Windows 7 operating system.  I have tried to get in touch with apple and the advisor said he could not help me.  Ideas? 

    Before you change the country, note the following:
    - you must use any remaining store credit on your account
    - download all purchased content
    - ensure you have no current rentals(if you do, you'll have to wait for them to expire)
    - provide a new payment(such as a credit or debit card) associated with a valid billing address in the UK or an iTunes Gift Card purchased in the UK
    - content purchased from the iTunes Store is country-specific. If you wish to upgrade any of your iTunes Store content to iTunes Plus, you'll need to do this before you change countries. The content you purchased while your account was set to the previous country will not be eligible for upgrade once you've changed countries.
    - after you change countries, you will no longer receive application update notifications in iTunes for the apps you purchased in your original country. However, you'll still receive update notifications on your iOS device for any applications installed on it. In addition, you'll be able to download previously purchased applications again for free if they are available on your new country's store. You will not be charged and the download will not appear on your Purchased page. If a previously purchased application is not available in your new country, you will not be able to download it again for free.
    - If you have an iTunes Match subscription, you can't change countries until the subscription has expired.
    - If you have purchased a Season Pass, you cannot change the country associated with your account until that season is done airing and the last episode of the season has been added to the iTunes Store.
    Taking the above into consideration, here's how to change your country:
    1. Open iTunes and click Sign In.
    2. Enter your iTunes Store account name and password, then click Account Info.
    3. On the Apple Account Information page, click Change Country or Region.
    4. Enter the updated information and save your changes.

  • I just synced my iphone 3gs after downloading the Safari upgrade, now my iphone won;'t open any apps except the ones loaded on my phone when I got it.

    I just synced my iphone 3gs after downloading the safari update.  Now I can't open any apps except the ones that came with the phone.  I have tried rebooting, turning it off and on. 
    When I select the icon, it goes to the page then returns to my screensaver.
    It was working well before the update and sync with my Acer netbook.  Have never had any problems with itunes store or downloads.

    this happened to me with my iPhone 4. I researched the problem and found this :
    "The reason this happens is because every time a downloaded app is opened it checks for your itunes password for validation that you are authorized to open that app (as it may contain personal info). From time to time the iphone 'forgets' your itunes password. You can fix the missing password by syncing the iphone with itunes or downloading an app from the app store and entering your password that way.”
    And to fix it, all I did was download a new app, or delete a current one, I used Facebook, and re-download it.
    Hope this helps

  • HT202213 Two Itunes libraries on one computer.  Any way to share content between the two libraries?

    We have 2 ITunes libraries on one computer.  Is there a way to share movies, music, etc. between the two libraries?

    To your second question, probably the easiest way is to set up another user account on your machine. Then when that user opens iTunes, it will be a new library (empty) that they can put anything they want into, and not corrupt your library.
    With another user account, they can also customize their own desktop photo, desktop icons, etc. so lots of benefits doing it that way. Works out great for me and my 13 year old daughter so I don't have to see the latest Emo band hearthrob's face on my desktop.
    Patrick

  • Have multiple iTunes libraries on one machine?

    Hi,
    I want to have multiple iTunes libraries on one machine (with two different hard drives, internal fore mp3s and external for AAC files). One library is composed of mp3s for an iPod, I want the other library to have AAC audio files for burning CDs. I would rather the libraries not be mixed.
    I have read the article (#301748) for migrating an iTunes library and am preparing to migrate one of the libraries on to a external hard drive.
    I have read about using Libra to maintain two different libraries on one machine. I was wondering if anyone does this and if they have encountered any problems? Is there a better solution?
    Thank you,
    TPK

    It's one thing to want two music libraries on one machine and another to want two music libraries on one user account. For the latter, here's what I've done.
    I created folders in my iTunes folder called, say, Main Library Folder and Second Library Folder. (These could be anywhere you find convenient.) I dragged my regular iTunes Library file into the Main Library Folder. Then I opened iTunes and created my second music library. When I finished that, I closed iTunes and dragged the just-created iTunes Library file into the Second Library Folder.
    If I want to use my main iTunes library, before opening iTunes I drag an alias (Cmmd-Option-drag) of the iTunes Library file from the Main Library Folder into the iTunes folder. Then, when I open iTunes, iTunes reads my main library file. And of course, it works the same way for the second library.
    Of course, you could just shuffle the actual library files into position in the iTunes folder from their holding areas, but I strongly preferred to get myself into the habit of relying on aliases, so I could leave the actual library file alone in their respective folders. You most definitely would not want to accidentally overwrite one of your iTunes Library files.
    I'm sure one of the shareware products would do a more elegant job, but this just shows you that it's not a difficult process.
    The alternative is to set up separate user accounts to access different libraries on the same machine. This has real benefits and, to me, should be the first option one considers. It's easier on the brain, as it sticks to iTunes' one-user-one-library model, and there's absolutely no risk of getting libraries confused. Fast User Switching on the Mac makes going back and forth between accounts easy. But if you really want to avoid using different accounts, and it's only you that has to keep things straight, the approach of jumping back and forth between different libraries in the same user account should be OK.

  • Which is better?  2 iTunes installs wl one logon -or- One iTunes install with configured sync parameters?

    First, I'm on Windows Vista ... not a mac ... and I do not own MobleMe ... my wife and I are already users of iTunes ... so we're talking about going from where we are now to where we want to be - which will involve changes.  Thanks in advance for sharing ...
    Currently, my wife and I have separate Windows Logons (on the exact same desktop machine) ... and we each have our own respective iTunes software installed on our separate desktops.   She syncs her iTunes with her iPhone, and I sync my iTunes with my iPad and iPhone.
    I'm interesting in merging our separate iTunes accounts into one for the purpose of not having to purchase duplicate apps that we each will be wanting in the future.  (She doesn't know it yet, but she's going to get her own iPad for a surprise present.)
    Looks like we are going to repurchase all her paid apps and place those into my account ... (she has fewer paid apps than I have, and that seems to be the least expensive way to start off.)
    So... Here's my question:
    Is it better to have her sign off permantly from her installed iTunes Account, and sign back on as "me" ... then download all the apps I have already bought that she wants?   ( I.e.  have two separate iTunes installations - both using the same login ID and password ... but personally configured to our liking).
    ... OR ...
    Is it better to delete her installation of her iTunes Account and just start using mine ... again configured to her liking by checking which apps should install her her devices and which should be installed to my devices?
    =============
    Right now, she has her own music and I have mine ...
    I'm open to any suggestions about PROs and CONs of each method ...
    Thanks for sharing

    I've done some more reading around and found posts talking about disconnect issues and that some of them were able to fix their issues with a newer router.
    I started thinking about my setup... I have a fairly old Linksys WRT54G-L v1 router and the latest firmware is 4.3.0.12. I had previously been running 4.3.0.5 and last night before more tests I upgraded my router.
    After upgrading the router I restored and re-upgraded Apple TV. Connected to iTunes and synced a movie. The streaming worked even if I rebooted Apple TV. I could close iTunes on the computer and restart it and the Library title would go gray and then turn back to white when iTunes comes back up.
    Sounds like its working ...
    However, when I restarted the computer... relaunched iTunes... the library title / link stays grayed out and no streaming...
    SO after reading those posts about the potential for routers to be incompatible it got me thinking about how old mine is, 5 or 6 years old I think... and now I'm thinking about a Time Capsule or AirPort Extreme...
    But before I do that, I'm going to update my Windows computer that hosts iTunes to XP SP3 and see what comes out of it. I have been putting that off long enough (actually thought I had already done it but I guess it just slipped me).
    After that I will see how everything is behaving.
    IF anyone has XP SP3 and still has this issue I'd be interested to know what kind of router you are using.

Maybe you are looking for