Replacing an existing file: crash!

Dear readers,
since upgrading to lion, when I try to copy a file over an existing one, the finder crashes.
Observations:
- this does not happens everytime, but it is quite frequent, and usually related to a "complex" replace, where by "complex" I mean not substituting a single, simple file, but rather a folder, or an application.
- for instance today, I copied the application iBank, just updated (but it could have happened with any other file), on the folder containing the previous version. I got the message "the file already exists... etc.". I click replace and then...
gray screen... and the mac restarts (I have checked the option to restart when the mac freezes)... So I guess I got a kernel panic or something similar...
In summary, when replacing a file, usually I get a finder crash/restart. Today for the first time, I got a mac restart! I start to worry...
Does anybody have the same problem when copying/replacing a file?
So far the only workout is to delete first the file/folder/application with the same name, and then copy over the new/replacing one...
But that's not a solution!
Any suggestion/fix?
Thanks for helping!
zipdon

Dear readers,
since upgrading to lion, when I try to copy a file over an existing one, the finder crashes.
Observations:
- this does not happens everytime, but it is quite frequent, and usually related to a "complex" replace, where by "complex" I mean not substituting a single, simple file, but rather a folder, or an application.
- for instance today, I copied the application iBank, just updated (but it could have happened with any other file), on the folder containing the previous version. I got the message "the file already exists... etc.". I click replace and then...
gray screen... and the mac restarts (I have checked the option to restart when the mac freezes)... So I guess I got a kernel panic or something similar...
In summary, when replacing a file, usually I get a finder crash/restart. Today for the first time, I got a mac restart! I start to worry...
Does anybody have the same problem when copying/replacing a file?
So far the only workout is to delete first the file/folder/application with the same name, and then copy over the new/replacing one...
But that's not a solution!
Any suggestion/fix?
Thanks for helping!
zipdon

Similar Messages

  • Replace an existing file with a new one

    This is probably a very simple problem. I have a script that is making an XML document. I am sucking information out of a database and exporting it as a XML file. The script runs just dandy except when I want to update the text file I receive an error along the lines of "the file already exists".
    What code do I use to replace an existing file?
    tell application "Finder"
    set theFile to "donky.xml" as string
    set theFullName to mySavePathAsText & theFile
    set theNewFile to make new file at myPath with properties {name:theFile}
    write myFinalText to file theFullName
    set the extension hidden of theNewFile to false
    end tell
    I assume I would use the "replacing yes" command but that is not working or I am not doing it right.
    Any help much appreciated.

    Hello
    Two things.
    • 'open for access file _path with write permission' will create new file at the path given in _path if it's not present.
    • 'set eof' command will clear the existing contents of the given file, which lets you replace the contents.
    So you may try something like this. (Finder is only used to set 'extension hidden' property of the file)
    Good luck
    H
    -- SNIPPET
    set theFileName to "donky.xml"
    set theFullPath to mySavePathAsText & theFileName
    try
    set fref to open for access file theFullPath with write permission
    set eof fref to 0 -- clear the existing contents
    write myFinalText to fref starting at eof
    close access fref
    on error errs number errn
    try
    close access file theFullPath
    on error --
    end try
    error errs number errn
    end try
    tell application "Finder"
    set extension hidden of item theFullPath to false
    end tell
    -- END OF SNIPPET

  • How do I change my Itunes library to another computer without losing anything or replacing my existing files with ones on the new pc?

    I recently broke up with my girlfriend and I'm trying to switch all of my info. around to my new place and pc.  How do I save all of my existing files of music, etc. to the new pc and start a new itunes library using what I already have?  I don't know what kind of info. that I would need about her pc or if I need anything at all.  Can somebody please help?

    - Transfer iTunes purchases to the new computer by:
    iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
    - Transfer other music by using a third-part program like one of those discussed here:
    Copy music from Ipod to new computer...: Apple Support Communities
    Copy music from Ipod to new computer...Some third-party programs also allow moving synced photos to the new computer.
    - Make a backup of the iPod by connecting the iPod to the computer and right clicking on the iPOd under Devices in iTunes and selecting Backup
    - Restore the iPod from that backup and sync as necessary.

  • Can I move files from one hard drive to another without replacing/duplicating existing files?

    Long story short, my work purchased a Macbook Pro and copied all of my files from my iMac to my new Macbook Pro. I've had to work on my iMac before my laptop was fully ready and now I need to transfer more files over to my Macbook Pro.
    Is there a way that I can drag contents from my profile folder (documents, downloads, etc.) to my Macbook without have to moving 100+ gbs of information. Basically, is there a way that the computer can recognize that "Folder A" already exists on my Macbook Pro and it will not ask to replace that folder?
    I am sorry of my question is vague; I'll rephrase if necessary.

    Well, if you drag the contents of your "Documents" folder (on iMac) into your new "Documents" folder (on MacBook Pro) for instance, and choose "Do Not Replace" while checking the "Apply to All" box, it will only transfer new items (this does not include updated items). Now if the new items are in folders that exist under "Documents", then you may need to go into individual folders and repeat this process. That's the only way I can think of doing it. I'd hold off to see if anyone else has a better answer. Good luck!

  • I want to retrieve a replaced file with existing file help please

    While arranging my files in different folders I was asked "This file already contains a file named 'xyz', would you like to replace the existing file?", of course I said yes not realizing that they were not the same picture, they had the same file numbers only because they were in different folders. Therefore I cannot reconnect because the picture is not the same. Also, the picture I cannot find has a small red box @ bottom of pic with a rip going through it. What does that mean & can I save this pic & the other one I replaced it with?

    Hi Teresa,
    Sorry for the delay... This sounds quite messy. Do you have a lot of
    tags? If not, it might be an idea to do one of two things and I'll
    explain the merit of each option:
    1. Restore your backup;
    You should do this ONLY if you are not concerned about overwriting what
    you have done since the backup;
    2. Restore images from your recycle bin, relabel the my catalog.psa file
    to my catalog.old and start all over...
    You should do this if you are concerned about images that you have been
    working on since the last back up. It will lose all your
    tags/collections, but any images that are still on your computer will
    not be affect.
    Now... let me know which option you want to proceed with and I'll write
    out the instructions for you.
    Cheers

  • Proper way to modify existing files?

    Hi! I'm writing a small package for my own purposes to install some keyboard options I want to add to X. I am adding some files to /usr/share/X11/xkb/, but I also need to modify /usr/share/X11/xkb/rules/evdev, /usr/share/X11/xkb/rules/evdev.lst, and possibly /usr/share/X11/xkb/rules/evdev.xml. The modifications are small -- two or three lines generally, but I'm not sure what the best way to make these modifications are.
    Based on what I can find on the wiki, I can proceed one of two ways:
    * I can create a patch for the files, apply the patch during build() to the source files, and then put them into the package to replace the existing files.
    * I can add a .install file, which either applies the patches after install, or uses echo ... >> to add the appropriate lines to the files.
    I'm not sure if I'm missing something, or what the best way to apply these changes is? Which of these options is the cleanest to back out of? And how does pacman handle possible interactions with other packages that might want to modify the same files?
    I'm tempted towards the second option because if I use the various hooks it might be easier to back out of the changes?
    Thanks,
    Ricky

    Neither of these are sane ideas. If you want to modify files which are owned by a package (any package) and not part of the backup array, you have a few options:
    1) rebuild the package owning the files with your changes. you'll have to do this for every release.
    2) rebuild the package with those files in the backup array. now you're free to change them and they won't be clobbered on upgrade. But, you'll still need to do this every release.
    3) change the files anyways, and add them to NoUpgrade in /etc/pacman.conf
    package install scriptlets are not meant to be used to arbitrarily modify files.

  • 64 bit Photoshop CS 5.1 Extended crashes every time I create a new file or open an existing file

    I installed the 64 bit version of Photoshop CS 5.1 Extended successfully.  It opens fully without issue.  However, any time I create a new file or open an existing file, it crashes. 
    I figured this would have something to do with my graphics card, but it still does the same thing after updating the drivers & nVidia software.  Seems like my whole trial will end up expiring before I ever even get to use it!! Please help!!
    System details:
    Windows 7 Home Premium, 64 bit
    Service Pack 1
    AMD Athlon II X2 215 Processor 2.7 GHz
    4 GB RAM
    nVidia GeForce 6150SE nForce 430
    Thoughts?

    I installed the 64 bit version of Photoshop CS 5.1 Extended successfully.  It opens fully without issue.  However, any time I create a new file or open an existing file, it crashes. 
    I figured this would have something to do with my graphics card, but it still does the same thing after updating the drivers & nVidia software.  Seems like my whole trial will end up expiring before I ever even get to use it!! Please help!!
    System details:
    Windows 7 Home Premium, 64 bit
    Service Pack 1
    AMD Athlon II X2 215 Processor 2.7 GHz
    4 GB RAM
    nVidia GeForce 6150SE nForce 430
    Thoughts?

  • InDesign CS5 crashes on opening new or existing file

    I am getting error message 'embedded profile mismatch' on opening existing files (CS5 and CS3) created by myself and other people.  The error message appears and InDesign crashes - I have to do a forced quit. On opening a new file InDesign crashes before the file is opened. I haven't yet managed to open any file in CS5. It is an update from CS3.

    The profile mismatch warning probably has nothing to do with the crash problem. That simply means that your color settings are different in the new installation.
    The continuing crash may be caused by a corrupt recovery file. If there is a file in the recovery folder, remove it and ID should start.
    Try exporting the CS3 files to .inx from CS3 and see if those will open succesfully in CS5.

  • Saving attachments to replace existing files

    I email myself a lot of html and jpegs between my work pc and my mac at home.
    When I save the attachments on my mac - instead of replacing older versions of files with the same name (ie. overwrite) I've found that it adds the files and puts a 1 on the end of the filename. So for example - instead of updating index.html when I save the attachment - I get index-1.html and then have to rename and delete the older file.
    I'm sure this has only started since I upgraded to Leopard - and I'm certain it's easily fixed. But how? Any takers?

    I'm sure this has only started since I upgraded to Leopard
    No, that is an old tradition of Macs that goes back some way. It is to avoid overwriting a pre-existing file simply because the name is the same.
    If you want the opposite fast and loose behavior, then perhaps create a folder action to perform this overwrite function that you desire, and copy those files into that.

  • PE 13 crashes due to incompatible video driver detected. Running on Win 7 SP1 with ATI 540v video card/driver.  Deleting bad driver file in adobe program data does not fix the problem,  it simply replaces the text file and crashes again.  My video driver

    PE 13 crashes due to incompatible video driver detected. Running on Win 7 SP1 with ATI 540v video card/driver.  Deleting bad driver file in adobe program data does not fix the problem,  it simply replaces the text file and crashes again.  My video driver is just fine.  Any help out there?

    rb
    Your video card driver may be fine for something, but just not compatible with Premiere Elements 13/13.1.
    For those with the display card error, the answers include
    a. assure your video card/graphics card driver version is up to date according to the web site of the manufacturer of the card -
    if necessary consider a driver roll back.
    b. determine in Device Manager/Display Adapters if the computer is using 2 cards instead of 1
    c. delete the BadDrivers.txt file
    the rationale for that deletion is found in post 10 of the following older post...principle applies to 13 as well as 9.
    Re: Premiere Elements 9 Tryout Serious Display Problem
    Have you looked for computer ATI card settings that might be more compatible with Premiere Elements 13/13.1?
    When is the program crashing - just opening a new project or rather crashing if editing a particular video format at the Timeline level?
    ATR

  • I just purchased a new MacPro to replace my existing 2006 MacPro which cannot be undated with the new operating system.  My question is what is the safest way to transfer all my files.  1) simply install my existing 2TB HD into the new Mac Pro or 2)

    I just purchased a new MacPro 3.2GHz Quad-Core Intel Xeon processor to replace my existing 2006 MacPro 2 x 2.66 GHz Dual-Core Intel Xeon because it cannot be undated with the new Lion operating system.
    My question is what is the safest way to transfer all my files to the new computer.  1) simply install my existing 2TB HD into the new Mac Pro, set it as the startup drive, and update its10.7  operating system or 2) or use the migration program.
    I'm concerned that simply installing the existing 2TB HD, I may have issues with it not recognising some infromation written for the old 2 x 2.66 GHz Dual-Core Intel Xeon.

    your new system runs 10.6.8 just fine as has been said and stated many times.
    I would clone it first.
    I would even clone the original system it has.
    And if you have or want to use Lion and then Mountain Lion, fine - I would still keep backups of every OS.
    I am not a fan of putting the OS and Apps plus all the data all on one drive. I like to keep them separate.
    Whatever OS, rerun the last combo update is all and any other updates.
    And by "new Lion" I assume you don't mean 10.7 but "Moutain" 10.8.  Part of me says keep Lion and SL around, and test and try out ML with your apps and other hardware you may have. After too many years, waiting for 10.8.1 - and give everyone time to update their apps and retest.

  • I formatted by PC which erased the iTunes software as well. Now when i try to backup my iPad the new iTunes doesn't have access to my existing files. The option is to erase the current content of my iPad and replace it with existing files on my PC.

    I formatted by PC which erased the iTunes software as well. Now when i try to backup my iPad the new iTunes doesn't have access to my existing files. The option is to erase the current content of my iPad and replace it with existing files on my PC. How do i get access to the preivous library?

    Drrhythm2 wrote:
    What's the best solution for this? I
    Copy the entire /Music/iTunes/ folder from her old compouter to /Music/ in her account on this new computer.

  • Replacing existing files

    Hi. I'm having a problem with multiple copies of files. I've started to upgrade songs that I already have in my iTunes library as mp3s, by importing from the original CDs as Apple Lossless files. My iTunes library and the existing files are all on an external NAS. 
    Previously, when I've inserted the CD, iTunes has given me the option of 'replacing existing', and has replaced both the entry on iTunes and the file itself in the iTunes Media Folder. However, a few days ago I started using a Mac, and for some reason, it has started to behave differently. Although within iTunes the mp3 appears to be replaced by the Apple Lossless, within the folder it is not, and I end up with both mp3 and Apple Lossless versions.
    In Preferences, I have 'Keep iTunes media folder organised' ticked/checked.
    How can I make sure that the Apple Lossless file automatically replaces the exisiting mp3 file, please?
    Many thanks.

    notoriousjad wrote:
    How can I make sure that the Apple Lossless file automatically replaces the exisiting mp3 file, please?
    Import the CD again using the same computer you imported the CD originally with.
    Or try this script -> http://dougscripts.com/itunes/scripts/ss.php?sp=reripasaac

  • Automator - meaning of "replace existing files" needed please!!!

    Have just set up automator to back up to my external hard drive but there is an option to replace exisiting files. Will this replace ALL the files on my hard drive or just replace files which have been changed?
    Help greatly appreciated,
    Sgtbash17

    It replaces files of the exact same name.
    Files that have the exact same name, including the extension, will be replaced when you have that chosen.
    Without it checked, it won't overwrite files that have the exact same name. That means those files won't be written out at all, and the files of the exact same name will still contain the previous content. Therefore, you won't have a revised backup of those particular files.
    Other files that don't share the same name with any other file will be written.
    Does that make sense? If a file with the same name as another file already exists in that folder, then that file will be replaced. Other files that don't have the same name as any other file will continue to exist.
    The best thing to do is to try it out on a test sample before you start relying it so it won't matter if it messes up.

  • Cannot open existing files on new CC apps

    I just purchased a new Mavericks MacBook Pro and installed Photoshop, Illustrator and Premiere from Creative Cloud and am unable to open any pre-existing work that was created in those programs. I am getting error messages in PS and error messages in Premiere. When I attempt to open any file in Illustrator outside of the application folder the dialogue box to open files crashes. I am however able to create new files. Any thoughts or advice would be most appreciated!

    I've got a temporary hack that's fairly simple.
    I open the .RAF file in a hex editor, then do a find "X30" & replace "X20". Then save the file and sho' 'nuff PhotoshopCC opens 'er right up.
    Now how long's it gonna take for Adobe to get this worked out?

Maybe you are looking for

  • Can I have the same library on two different computers

    I have my iTunes library on a external drive linked to my work computer. Can I link it to my home computer too?

  • Login Problem when two users loging in at a time

    Hi, If two uses are loging in at a time in my application 1.It is displaying crah page for one user and another getting wrong permissions. 2.some times both getting wrong permissions. can you show me any suggestion to solve the problem

  • Argh! "java.lang.NoClassDefFoundError"! help!

    I am a student and only just started programming in Java. When I installed the SDK on my home computer i discovered that everytime i try and run a program i have written, no matter how basic, i get a "java.lang.NoClassDefFoundError". I did a search o

  • When should add "/" or not before a mapping path

    In a book I get the following : <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> There should be no trailing or leading ��/�� characters in the welcome-file element. <error-page> <error-code>404</error-code> <location>/

  • Creating Users with RDBMS realm

    "I am currently creating new users in the RDBMS realm by an EJB that inserts into