Skip to main content
Inspiring
March 2, 2024
Answered

How to find locked files only?

  • March 2, 2024
  • 2 replies
  • 1416 views

Hi all,

quick question:  is there a smart way in Bridge to only find locked items? Advanced search or filters don't seem to offer such a search.

THX!

Martin  

This topic has been closed for replies.
Correct answer Lumigraphics

This is not a correct answer and not helpful. OP, please ignore this.

You can use a script to identify locked files.

This is a bare-bones snippet of the logic used:

var sels = app.document.selections;
for(var i = 0; i < sels.length; i++){
   if(sels[i].locked == true){
      //do some action
      }
   }

 This would need to be made into an actual functioning script, with whatever action (assigning a keyword or label, for example) that you wanted.

2 replies

Stephen Marsh
Community Expert
Community Expert
March 5, 2024

In my tests on the Mac OS, files that are locked at the system level don't accept changes in Bridge.

 

So simply select all files that need to be identified and add an unused ratinglabel or keyword etc that you can easily search/sort/filter by. The locked files will not receive this change, so this works opposite to the original request while still allowing the files to be found by the excluded value, rather than the included value.

 

Inspiring
March 5, 2024

@all. Thx all for your thoughts! In a nutshell, we are talking about tagging "all" files with an explicit flag (keyword, whatever). Then a negative search for this flag will reveal the locked files because these haven't been tagged - because they are locked. Very good.

Thanks for your help!! M

 

Known Participant
March 2, 2024

In a word, no. 

 

Be careful folks of what has been asked.

 

Is it wise to cultivate that sort of behavior?

LumigraphicsCorrect answer
Legend
March 4, 2024

This is not a correct answer and not helpful. OP, please ignore this.

You can use a script to identify locked files.

This is a bare-bones snippet of the logic used:

var sels = app.document.selections;
for(var i = 0; i < sels.length; i++){
   if(sels[i].locked == true){
      //do some action
      }
   }

 This would need to be made into an actual functioning script, with whatever action (assigning a keyword or label, for example) that you wanted.

Inspiring
March 4, 2024

Thanks for this update, Lumigraphics.

Sorry to come back, being a complete scripting newbie. Could you please replace //do some action with a working example, so that a dummy keyword is assigned. And if I got it right I have to copy the code (anything else to add?) into a text editor and save as .jsx file and then implement via Bridge Preferences.

Thanks once again for your time. M