How to delete Finder file with no path?

Discussion in 'OS X Mountain Lion (10.8)' started by NotVeryClever, May 30, 2013.

  1. macrumors newbie

    Joined:
    May 30, 2013
    #1
    I have some files that can be found by name and by content using Finder's command-F that I believe used to be associated with the adblockplus Firefox extension (AKA formerly system files in the Library folder).

    These files do not have a file path, and I cannot open the enclosing folder etc. I don't actually care about using these files, I just want to delete them. However I cannot drag them to trash, nor can I delete them using command-delete. I cannot drag them into Terminal to find the file path or delete from within Terminal.

    Does anyone have a suggestion for deleting these files?

    OS X 10.8.1; screenshot is included.
     

    Attached Files:

  2. macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
    #2
    .ini files are Windows files, and have no effect on OS X. Try restarting your computer, then check to see if the files remain. It may be that they have already been deleted.
     
  3. thread starter macrumors newbie

    Joined:
    May 30, 2013
    #3
    The file remains on restart. Perhaps it will go away with time, but it is not very satisfying that I cannot delete it. It is also confusing to me that the file and its content still remain and are searchable but it does not have a path...
     
  4. macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
    #4
    What shows up in the Finder Status Bar or Path Bar if you click on one of those files?
     
  5. simsaladimbamba

    Joined:
    Nov 28, 2010
    Location:
    located
    #5
    I have had a similar problem and PathFinder helped me solve it. Here is the thread with the solution. Hopefully it helps.

    And man, using a Windows based PC is horrible now. If it would be at least Windws 5.0 or 5.1, but no, it is 6.0.
     
  6. macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
    #6
    Another possibility is you may need to reindex your drive: If that fails to index, enter the following command in Terminal:
    sudo mdutil -i on "/Volumes/your drive name"​
     
  7. thread starter macrumors newbie

    Joined:
    May 30, 2013
    #7
    I don't think it is letting me show the Path Bar? I am not sure I am doing what you suggested, but I have a screenshot.

    Ah! but there is learning - if I open the file I get an error -- The alias "patterns.ini" can't be opened because the original item can't be found.

    Delete alias just brings the same window up again. If I select "Fix Alias", set it to a random text file, I get another error. "The operation can't be completed." Error code -43

    [edit -- added image]
     

    Attached Files:

  8. thread starter macrumors newbie

    Joined:
    May 30, 2013
    #8
    Sorry, you guys are fast! I will try the above two tricks and update!
     
  9. macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
    #9
    Yep, it looks like the item has been deleted. Try reindexing your drive, using the instructions in my last post.
     
  10. macrumors 65816

    w0lf

    Joined:
    Feb 16, 2013
    Location:
    USA
    #10
    If you drag the file into terminal from finder does it give you a path?
     
  11. thread starter macrumors newbie

    Joined:
    May 30, 2013
    #11
    Finder will not let me drag the files! I can click on them and highlight them to get info, etc, but cannot drag them.

    Still haven't tried other suggestions, looks hopeful though! And thanks to all for the help as well -- Will update but seems wise for me to finish my work and save everything first, will be a couple hours.
     
  12. thread starter macrumors newbie

    Joined:
    May 30, 2013
    #12
    Reindexing the drive did the trick! The files are no longer turning up by name or content. Also an incredibly quick and easy solution. Thanks to GGJstudios! Followed protocol as described https://support.apple.com/kb/ht2409 -- dragged in whole volume.

    Neat stuff!
     
  13. macrumors 68040

    Joined:
    Jul 11, 2009
    #13
    This is not true. There are several apps for Mac which write data into .ini files. (Yes, developers probably shouldn't be doing this, but they do.)
     
  14. macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
    #14
    A 3rd party app writing data into an .ini file is quite different from such a file affecting OS X.
     
  15. macrumors 68040

    Joined:
    Jul 11, 2009
    #15
    Nonetheless, your advice made it sound as if deleting them will have no effect.
     
  16. macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
    #16
    Actually, I was implying that leaving them will have no effect, but either is true. Whether they're deleted or not will have zero effect on OS X.
     

Share This Page