How to search for all locked files in a folder with subfolders
I used an automated workflow below as noted, but it returns errors. I would like to determine the names of locked files within multiple sub folders. Here is the error I receive:
Service failed. Couldn’t open the selection, followed by this error message:
The action “New TextEdit Document” encountered an error: “Could not return new TextEdit document”
Here is the workflow provided:
After opening Automator, choose New Document.
Select a Service as the workflow type.
At the top of the window, set Input receives to Folders in the Finder.
From the Library on the left, open Utilities.
Drag the Run Shell Script action into the pane on the right.
Replace the contents of the Shell Script with:
find "$@" -flags uchg
Set Pass Inputs to Arguments
From the Text category, drag in a New TextEdit Document.
Save the Service with a short, but descriptive name.
Close the workflow and Quit Automator.
To use the Service, ctrl-click (or right-click) on a folder in the Finder.
From the Services submenu, select the Service you just created.
A TextEdit document will open with the found files listed with their full file path.
Any help will be appreciated. Thanks, Scott