Directory change - files need to be located

hi,
i recently disconnected by external drives containing all my media and then re-connected them, but the drive identifications changed (changed from f: to g: etc). So now all of my music files in iTunes need to be located. Is there a way iTunes can mass locate all the tunes?
Thanks

Hi, welcome to Apple Discussions.
With iTunes closed backup your main iTunes library file. This is normally at *..\<Documents>\<Music>\iTunes\iTunes Library.itl*. Just make a copy at say C:\ in case the next steps don't work.
Start iTunes and open the preferenecs dialog *Edit > Preferences...*
In the Advanced tab edit the location of the *iTunes Media Folder*, changing F:\ to G: or as required.
iTunes may spend some time processing, either now or when next restarted. Either way when it has finished, close iTunes, give it some time to finish saving files and then reopen. Don't cancel or interrupt any dialogs it displays. When iTunes has finished reopening it should be able to find all your tracks.
If that doesn't work restore your backup and reassign the drive letters so your media is back where it used to be.
tt2

Similar Messages

  • AppleScript: copy a file to a new location, changing its name

    I want to copy a selected file to a new location and change its name, both location and name adjustable by the user. It would seem natural to me (a neophyte) to use the Duplicate and Choose File Name commands to do this, so this is the module I came up with:
    tell application "Finder"
              set myFile to the selection
              set textsAlias to alias "Campidoglio:Users:jeffreyjdean:Dropbox:Tinctoris:Editing Software:TextToJS:texts:"
              set fileForConversion to choose file name default name "shortname.txt" default location textsAlias
              try
      duplicate document file myFile to fileForConversion with replacing
              on error
                        display dialog "Error: Unable to save file."
              end try
    end tell
    This doesn't work. The error dialog comes up and this is the result report:
    tell application "Finder"
      get selection
      --> {document file "12 De inventione et usu musice.txt" of folder "Edited texts" of folder "Desktop" of folder "jeffreyjdean" of folder "Users" of startup disk}
      choose file name default name "shortname.txt" default location alias "Campidoglio:Users:jeffreyjdean:Dropbox:Tinctoris:Editing Software:TextToJS:texts:"
      --> file "Campidoglio:Users:jeffreyjdean:Dropbox:Tinctoris:Editing Software:TextToJS:texts:shortname.txt"
      -- 'core'\'clon'{ 'insh':'furl'("file://localhost/Users/jeffreyjdean/Dropbox/Tinctoris/Editing%20 Software/TextToJS/texts/shortname.txt"), 'alrp':'true'("true"), '----':'obj '{ 'form':'indx', 'want':'docf', 'seld':[ 'obj '{ 'form':'name', 'want':'docf', 'seld':'utxt'("12 De inventione et usu musice.txt"), 'from':'obj '{ 'form':'name', 'want':'cfol', 'seld':'utxt'("Edited texts"), 'from':'obj '{ 'form':'name', 'want':'cfol', 'seld':'utxt'("Desktop"), 'from':'obj '{ 'form':'name', 'want':'cfol', 's…
      --> error number -1700 from {document file "12 De inventione et usu musice.txt" of folder "Edited texts" of folder "Desktop" of folder "jeffreyjdean" of folder "Users" of startup disk} to integer
      display dialog "Error: Unable to save file."
      --> {button returned:"OK"}
    end tell
    Result:
    {button returned:"OK"}
    Why is it telling me it can't duplicate a file to an integer? According to the AS Language Guide, the result of Choose File Name is "The selected location, as a file." How does this become an integer in my script?
    That may be a side show. What I really want to work out is how to achieve the aim stated at the beginning: take a selected file (that part is working OK) and duplicate it to an arbitrary location with an arbitrary new name, decided by the user. What's the best way to go about this?
    TIA,
    Jeff
    Message was edited by: Jeffrey Dean

    I think you're misinterpreting the error message.
    It's not complaining about your 'Choose File Name', per se.
    There are two problems with your script.
    First, you:
              set myFile to the selection
    As far as the Finder is concerned, 'selection' is a list. It's always a list, even if only one item is selected - heck, it's still a list if no files are selected... just an empty list.
    So that's the first thing the script is complaining about - you are using a list that you're trying to coerce to a file. Can't happen.
    You have a couple of options here, depending on what you want to do.
    You can tell the Finder to duplicate a list - it will simply duplicate all the files in the list. It has no problem with that, although you're going to run into problems when you try to set the file name(s). This highlights one of the design flaws with your script - how do you know the user only has one thing selected? At the very least you should check how many items are selected and react accordingly.
    The other option is to iterate through the list, duplicating each file in turn. Again, it's not clear what you want/expect the outcome to be here - since you include 'with replacing', you'd likely end up with one file (the last one in the list) as being the named file and all other duplicates lost.
    The third option is to expect there to be one item selected, and just act upon the first one - thereby ignoring multiple selections, although it's undefined as to which item is 'first' in the list.
    Your call.
    Once you get over the issue of identifying what you want to duplicate, the second issue with your script is how you're calling duplicate. You cannot duplicate one file to another file name. The duplicate command expects (demands?) a directory as the 'to' parameter, not a file name.
    In other words, you can duplicate a file to a new directory. You cannot duplicate it to a new file name - at least not in one step. In order to do that you need to duplicate the file, then change its name (or use a shell script to do it 'under the hood').
    This is complicated by the fact that it's the rename that requires you to check for duplicates, which you have to do manually.
    So given the above, and assuming you expect/want one item to be selected, your script should look more like:
    tell application "Finder"
              set myFile to item 1 of (get selection) -- ignore multiple selections
              set textsAlias to alias "Campidoglio:Users:jeffreyjdean:Dropbox:Tinctoris:Editing Software:TextToJS:texts:"
              set fileForConversion to choose file name default name "shortname.txt" default location textsAlias
              set fDir to do shell script "/usr/bin/dirname " & POSIX path of fileForConversion
              set fName to do shell script "/usr/bin/basename " & POSIX path of fileForConversion
              try
                        set newFile to duplicate myFile to POSIX file fDir with replacing
                        if (exists file fName of folder fDir) then
      delete file fName of folder fDir
                        end if
                        set name of newFile to fName
              on error
                        display dialog "Error: Unable to save file."
              end try
    end tell
    Incidentally, this is something that could be much more easily done with a shell command, since the shell isn't as sensitive about file paths and data types.

  • How to change file location path at run time in OWB 10g

    Hello all,
    We want to load several files with the same name but from different folders into a single table.
    The information about the paths is stored in an oracle table.
    Is there any best practice to achieve this?
    Our approach is to loop on the number of sources and execute the mapping after changing the location path. We found how to make the loop, and have the apropriate OMB command to update the location path, but we are still looking for a way to call this OMB plus command in a process flow or a mapping. Any idea?
    We also succeeded in loading the file from an unregistered location, which is necessary to be able to update the path, but I'm not sure this is really the best approach. Any advise?
    Thanks in advance for your help!
    best regards
    Cedric.

    Hi,
    I can provide you with an idea on this, dont know if it will work or not.
    Suppose, you need to load 5 files in different folder locations into a single table. Call the mapping 5 times in a process flow. If you log in to the database, and go the table all_directories in your target schema, you will find an entry for the actual path of the file you are trying to laod. I think if this path is updated before each run of the mapping, you can load all files into the target table. Only thing you have to do is call a procedure which will update this record in all_directories table with the different locations each time you want and then plug in this procedure before each call to the mapping in a process flow and see if it works or not?
    Regards
    -AP

  • When i exit, mozilla will prompt me a message asked if i would like to save my tabs(i have 13 tabs opened). may i ask, where does all those 13 tabs (web addresses/links) stored in mozilla, or in which file that i can locate in mozilla's folder? I need a s

    I have a problem with my bookmarks, cookies, history or settings
    Description
    When i exit, mozilla will prompt me a message asked if i would like to save my tabs(i have 13 tabs opened).
    may i ask, where does all those 13 tabs (web addresses/links) stored in mozilla, or in which file that i can locate in mozilla's folder? I need a solution that i can find/copy down that 13 web addresses without needed to open mozilla browser.
    YOUR ATTENTION TO ABOVE MATTER IS VERY MUCH APPRECIATED!
    PLEASE HELP!
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729)

    Please see '''sessionstore.js''' in your Firefox profile directory, the location of which is described in the [[Profiles]] knowledge base article. This file can be viewed in a readable format using the [https://addons.mozilla.org/en-US/firefox/addon/10869/ JSONView] add-on.

  • My iCloud storage payment is going to be going through is 7 days but the card on file needs to be changed. How do I change he payment type?

    My iCloud storage payment is going to be going through is 7 days but the card on file needs to be changed. How do I change he payment type?

    Welcome to Apple Support Communities
    To change your payment, read > http://support.apple.com/kb/ht1918

  • Itunes cannot locate my files on the external hard drive - I changed preferences but still not locating songs?

    itunes cannot locate my files on the external hard drive - I changed preferences but still not locating songs?

    This work for the most part:
    https://discussions.apple.com/message/20361846#20361846

  • Songfile path not writing to .itl file when iTunes Media Location is changed.

    Running iTunes 11.1.4 on an Intel NUC with Windows 8.1. My iTunes library contains about 65K songfiles. All media is on a NAS.
    Frequently when I restart the PC the NAS is not immediately mounted. So if I don't check this before starting up iTunes, the iTunes media folder location changes to its default.
    I don't know if this is the cause of the problem, but a few days ago I started seeing a vast number of exclamation points indicating lost songfiles. All music is nicely organized in a parent folder on the NAS and iTunes had, until recently, no problem recognizing all of it.
    So the other day I changed the iTunes Media Folder Location in the program from the default (which it had switched to at bootup) to the songfiles' location on the NAS. I then let the software update the library.
    Still the exclamation points remained, with no discernible pattern. Within albums, some songs were recognized, some not. I'd say about two-thirds were missing, according to iTunes.
    I shut down iTunes, fired up Vim, and had a look at the library's .xml file. Sure enough, about two thirds of the songfiles pointed to the default media location, with another one-third pointing correctly.
    I edited the .xml file to line everything up properly, but came to find that this has no effect because the .itl file rules the roost. As soon as I started iTunes back up, the paths returned to the locations according to the .itl file, and these incorrect paths were also written to the .xml.
    Updating the media folder location seems to have no effect on iTunes's ability to find the files. I know I can rebuild my library using the .xml file (presumably best done after I have changed the paths to their proper file locations), but I don't want to lose playcounts, ratings, playlists, etc.
    So. It *seems* as if my .itl file is corrupt even though iTunes starts and the program is able to locate a portion of my media.
    Is there something I am missing? Some way to get iTunes to recognize the proper path for all media without a library rebuild?
    TIA.

    The "missing file" error happens if the file is no longer where iTunes expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, or that the drive it lives on has had a change of drive letter. It is also possible thatiTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout, or vice-versa, and so is looking in slightly the wrong place.
    Select a track with an exclamation mark, use Ctrl-I to get info, then cancel when asked to try to locate the track. Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, or a drive letter has changed, it should be possible to reverse the actions.
    If another application like Windows Media Player has moved/renamed the files then the chances are that subtle differences in naming strategies will make it hard to restore the media to the precise path that iTunes is expecting. In such cases, as long as the missing files can be found somewhere, you should be able to use my FindTracks script to reconnect them to iTunes. See this post for an explanation of how it works.
    I've seen a suggestion that iTunes' own repair mechanism may work better when "Keep iTunes Media folder organized" is turned off.
    See also make a split library portable. Keeping the whole library on the drive removes the problem of the media folder being reset.
    tt2

  • HT2470 allow user full rights ie save files in any location, change file attributes etc - how, where?

    how and where do I give my user full rights ie to save files in any location, change file attributed(from read only ) etc

    The simplest way is with the chmod Terminal command.
    Warning: unless you know exactly what you are doing, you are almost certain to break something with indiscriminate use of this command. Make sure at least your data files are backed up (& ideally in offline storage) before you experiment with this command, & note that you can mess things up enough that you will have to reinstall the OS to recover.

  • HT4974 After changing the location, can i remove the old files on the previous location ?

    I changed the service data storage location, but the old files still there. So can i completly remove the old location files?
    Is consuming a large amount of space, right know my Library folder have mre than 500Gb .
    Can i do anithing to about that?
    Thanks !

    1) If SL was the original OS installed on that computer, you can't install it on a different computer. The DVDs are tied to the original computer.
    Technically, if they are tied to anything it would be the computer model, not the physical computer itself. That means you could use it to install OS X on any computer with which those discs are compatible as long as you did not install on more than one computer at a time. I know this is a tad nit-picky, but that's the way it happens to be. No intended offense. Just hoping to be helpful.

  • Need help with Acrobat 6.0 pro; size of print is stuck @ 4.6"- can't change file print size

    - can't change file print size at all. printing one size dont know how to change it  (looking in print preview while in acrobat 6.0 pro..
      MAC OS  10.5.8

    ...."page set up"  from the apple menu- double duhhhh !

  • Is it possibly to change file attributes for files in the Program Files directory?

    Hi,
    I wonder if it is possible to change file time atributes for a file that is in the same folder as the exe file inside the Program File folder. I have the following code that gives System Error Code 5.
    SHGetFolderPath(0, CSIDL_PROGRAM_FILES, 0, SHGFP_TYPE_CURRENT, programpath);
    PathAppend (programpath, TEXT("Testprogram/gnsh.dat"));
    hFile = CreateFile(programpath, GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
    If this had worked, I would for instance have done like this
    GetSystemTime(&st); SystemTimeToFileTime(&st, &ft);
    timeresult = SetFileTime(hFile2, NULL, NULL, &ft);
    I am programming in C with WIndows Api.
    Thanks in advance for answer.
    Best regards

    Hi Vahmat,
    System error code 5 :
    ERROR_ACCESS_DENIED
    5 (0x5)
    Access is denied.
    I have tested your code on my side, it will get a error code 5 if you have no permission to access a file. Please try to run VS as a administrator and rebuild your project, after this , you code works well on my side.
    Best regards,
    Shu Hu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Change Software Update Service storage location - OS X Server 2.2

    What's the best way to change the file storage location used by the Software Update Service in Server 2.2? I don't want to change the default "Service Data" location for the other services.
    Generally I like to make as few changes to the standard configuration as possible, but in this case I need to make an exception. I'd really like to to get the catalog of update files on to an External Pegasus RAID.
    I've tried using a symlink to the /Library/Server/Software Update/Data folder. That didn't work as the service was unable to update the catalogs.
    Should I use a symlink on the whole  /Library/Server/Software Update/ folder or is there perhaps a better way?
    With any potential solutions, how likely is is that changes I make likely to be overwritten with future updates.
    Thanks,
    GRW

    Question (please use responses in bold in square brackets)
    Response
    1
    Update went smoothly with NO problems [No]
    No
    2
    Update actually solved existing previous problem with server [Not sure yet]
    Not sure yet
    3
    Updated from Server App version 2.2 [Yes]
    Yes
    4
    If answer to Q.3 was 'No' please advise previous server version [Server app version #]
    5
    OS X version at the time was 10.8.2 [Yes]
    Yes
    6
    If answer to Q.5 was 'No' please advise previous OS X version [-]
    To clarify:
    1) As it was updating application data, I got an error message at the very end of the update saying that some application data may not be usable/work/wasn't updated (something to that tune) with a yellow triangle and exclamation mark inside it.  After the update, I rebooted the server just in case then let everythign start up normally.  All services turned on as per usual.
    I have gone through most of my services that I run and I'll list off everything that I've tried out and it's state:
    Caching Server - Looks OK
    Contacts - Functioning so far as expected
    Calendar - Functioning so far as expected
    Profile Manager - Was able to test a push profile add and delete with success
    DNS - Functioning as normal
    Software Update - Looking good so far (I had issues with it stopping and restarting randomly with an interval of a month or two between events, hoping that is fixed, though it never affected functionality - it was in the error logs)
    File Sharing - Working as expected
    Open Directory - No issues thus far
    VPN - Looks OK
    Websites - Functioning as expected
    Hope that helps you guys!

  • How do I change the iTunes media folder Location and save it?

    I have a seagate drive where I store my music and have it shared as "M".  Each time iTunes starts up, it defaults back to C:\...... and if there is a device connnected, it transfers the purchases from that device to this directory.
    I need to manually go in and change the location each time iTunes starts.  Is there a way to save this location as the default?  I am on Version 10.
    thanks in advance

    If iTunes starts up and it can't get access to the location that you have declared as the media folder it will revert to the default subfolder of the library folder. Any downloads or rips will be put in that location until you correct the media folder location via Edit > Preferences > Advanced.
    Either make absolutely certain the drive is active and available before starting iTunes or place the library folder on the other drive as well (see this post)  so that iTunes either opens normally or warns that it cannot find the library. Note if this is a networked drive rather than locally connected USB/SATA there may be noticeable performance issues with the latter solution.
    tt2

  • I transferred my itunes to an external hard drive from my mac, now all of my music needs to be located. Help...

    I moved my itunes library to an external hard drive, now all of the music says it needs to be located. Not sure, but I believe it is not directed properly.

    if you do iTunes > Preferences> Advanced you can change the location of where your music is stored.  Click on change location and direct it to your external hard drive.  Of course, your external hard drive will need to be connected to your computer to play the music. 
    When you moved your music to an external hard drive, did you copy the folders or move the folder off your computer completely? I copied the folders, and left iTunes folder in my Music folder and all seems to work fine. one hitch can be is that your Library in iTunes will list all of your content, but if you have some albums on the hard drive of your computer and some on your external hard drive, iTunes will need to be told where to locate these files.

  • How can I get the directory.xml file for WL6.0?

    I have installed the ALBPM Enterprise WL6.01 and started it in my server.But I get the error message when I login.
    directory configuration runtime fails to initilize with
    resource:/Aqualogic/j2eewl/tomcate/webapps/../../webapps/webconsole/WEB-INF/directory.xml
    How can I get the XML file?

    aaa, ok i misunderstood your first post, i thought you are talking about unable to use the directory.xml from your application.
    Ok, well the directory.xml file that ALBPM uses is allways in /albpm6.0/j2eewl/conf/directory.xml if we are not talking about Standalone. And when you start your albpm server it picks up the directory.xml file from there. But it picks him up only when you start it...so if you made any changes to it, you have to restart the server.
    You should check the instalation folder of your ALBPM.
    If you want to change the user/pass in the directory.xml change it in that folder and restart ALBPM.
    If you don't know how to enter new password you have to use this sintax:
    <encrypt>newPassword</encrypt>
    Because if you open the xml file you have only <encrypted> tags, and you can't change those.
    I don't know what the xml file is doing in that tomcat folder though...maybe it get's copied to that location when you start the albpm WL
    Hope this helps
    Edited by Lex_ at 12/13/2007 10:27 PM

Maybe you are looking for

  • Lumia 920 with black not working Play to

    I spent today in update Lumia 920 black and I can not download the Play To the version 3 tells me that is not available on my device what's wrong what to do????

  • Removing special characters from a string

    Hi All, I have this in one my column in my table ABC-DEF ABC/DEF ABC,DEF ABC DEF I want to remove -, /, comma and space so i want the result like this ABCDEF ABCDEF ABCDEF ABCDEF How can I do this in PL/sql. Thanks.

  • Spotlight Not finding files Re indexing does not work

    As the title says really, but there is more. If I am logged in as one of two users, I can't find the file in the spotlight search, not quite...but if I log in as a new user, the file appears within a few characters being typed in the Spotlight of the

  • IWeb password removal problem

    I originally set password protection for my site via the function in inspector. I wanted to remove the password protection, so just unchecked the checkbox, made sure it was removed from all pages, saved and republished ... ... it didn't work! Reading

  • HELP! Pocketmac won't install

    Hi!  I have been trying to install pocketmac and it is not working. The installation works fine until it tries to install the sync manager installer, then the installation acts like it's searching my mac for something, and nothing ever happens. What