Lock multiple files at once

Discussion in 'OS X Mavericks (10.9)' started by macstatic, Jan 18, 2016.

  1. macstatic macrumors 6502a

    Joined:
    Oct 21, 2005
    #1
    Is there a way to lock many files at once?
    I'm aware of that doing a "Get info" will allow me to change the lock status, but with hundreds of files in a folder this isn't very practical.
     
  2. ricede macrumors regular

    ricede

    Joined:
    Aug 16, 2010
    Location:
    Inside
    #2
    Open the folder - highlight whichever files you want to lock or press Command A to highlight all. Hold down Command & Option keys and press 'i' key. This will open the multiple Get info window. Check the Lock box. Now - whichever files have been checked will be locked.
     
  3. macstatic thread starter macrumors 6502a

    Joined:
    Oct 21, 2005
    #3
    Wow, I didn't know about CMD-OPT which results in "Show inspector" for multiple items. Very useful. Thanks!
     
  4. prisstratton macrumors 6502

    prisstratton

    Joined:
    Dec 20, 2011
    Location:
    Winnipeg
    #5
    ……..And, just in case you want to do it in Terminal.

    1. Open a Terminal window

    2. Type in: sudo chflags uchg (with a space at the end)

    3. Drag the files you want to lock into the Terminal window

    To do the same in reverse use: sudo chflags nouchg
     
  5. macstatic thread starter macrumors 6502a

    Joined:
    Oct 21, 2005
    #6
    Thanks! Good to know about the command line and BatCHmod.
     

Share This Page