How to unlock multiple files easily?

Discussion in 'macOS' started by SPG, Oct 10, 2007.

  1. SPG macrumors 65816

    SPG

    Joined:
    Jul 24, 2001
    Location:
    In the shadow of the Space Needle.
    #1
    I have a ton of footage that was loaded into my computer over the summer. The jobs done and I could really use those couple hundred gigs of space. Only catch is that all the files are locked! I know how to unlock them manually, Apple-I , uncheck the locked icon and then to the trash, but there are THOUSANDS of files in hundreds of folders...a real PITA!
    I'm not super familiar with automator, but didn't see a solution there either.
    Anyone got a good trick to do this quickly? Otherwise it's gonna take me hours to do it manually.
     
  2. plinden macrumors 68040

    plinden

    Joined:
    Apr 8, 2004
    #2
    Do you want to just delete all the files? Are they all under one top level directory?

    You can probably delete them from an admin account using the Terminal command "sudo rm -rf <...directory name ...>". Be very careful with that, though. Double check you're in the right place.

    If you want to just unlock them, you can use the Terminal command chflags (I haven't tried this exactly, but this seems the correct syntax from the man page):
    chflags -R nouchg <... directory name ...>

    Edit: yes, I've tried that and it should work
     
  3. eb6 macrumors regular

    Joined:
    Sep 7, 2006
    Location:
    yo yo yo
    #3
    did you try selecting all the files at once and hitting command+I? I think if you select enough files it will just bring up just one info box instead of one for each file. Its worth a shot.
     
  4. SPG thread starter macrumors 65816

    SPG

    Joined:
    Jul 24, 2001
    Location:
    In the shadow of the Space Needle.
    #4
    Thanks for the suggestion but the problem with that approach is that there are usually only about 5 or six files in each folder...not enough to trigger one info pane, but enough to be a pain.
    Copying them all into a single folder results in duplicates being made which isn't helpful...oh well.
     
  5. SPG thread starter macrumors 65816

    SPG

    Joined:
    Jul 24, 2001
    Location:
    In the shadow of the Space Needle.
    #5
    Option one seems pretty scary since I'm not that confident with my programming skills and I have a bunch of current projects on that same drive, so I'll try option two. Thanks!
     
  6. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #6
    With a bunch of files selected, right-click on them and when the menu pops-up hold the Option key and you'll see one of the options change to Show Inspector. This'll force just one window popping open and allow you to change the lock setting.
     
  7. SPG thread starter macrumors 65816

    SPG

    Joined:
    Jul 24, 2001
    Location:
    In the shadow of the Space Needle.
    #7
    Nicely done.


    thank you.
     
  8. arkitect macrumors 601

    arkitect

    Joined:
    Sep 5, 2005
    Location:
    Bath, United Kingdom
    #8
    Chossing the files and then doing Option-Command-I also works. No need to right click.
     
  9. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #9
    Good to know.
     
  10. MivecGPX macrumors newbie

    Joined:
    Feb 28, 2009
    #10
    Fixed my "Locked" issue

    chflags -R nouchg.... bang on. None of this cmd-I nonsense, fixed in one go. Thanks for saving me soooo much time digging into each folder and unticking the "locked" flag. :)
     
  11. Katechall macrumors newbie

    Joined:
    Jul 12, 2013
    #11
    WHOA, thank you so, so much! Best tip ever!
     
  12. pcgolfer85 macrumors member

    pcgolfer85

    Joined:
    May 19, 2008
  13. theCatat macrumors newbie

    Joined:
    Nov 30, 2013
    #13
    Throw your files in the trash. Hold the option key down >> Finder >> Empty Trash.
     
  14. SHadowMist macrumors newbie

    SHadowMist

    Joined:
    Aug 23, 2015
    #14
    Thank yo so much for this info... i have struggled with this for so long .. ;)
     

Share This Page